Skip to content

Commit

Permalink
remove nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Jan 27, 2025
1 parent 091673c commit 8841841
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/src/pages/allow/OpenidAllowPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const OpenidAllowPage = () => {
const [scope, setScope] = useState<string | null>('');
const [responseType, setResponseType] = useState<string | null>('');
const [clientId, setClientId] = useState<string | null>('');
const [nonce, setNonce] = useState<string | null>('');
const [redirectUri, setRedirectUri] = useState<string | null>('');
const [state, setState] = useState<string | null>('');
const [name, setName] = useState<string | null>('');
Expand All @@ -42,7 +41,7 @@ export const OpenidAllowPage = () => {
const { LL } = useI18nContext();

const paramsValid = useMemo(() => {
// nonce is optional in the auth code flow
// nonce is optional in the auth code flow, just pass it as is further if it's in the params
const check = [scope, responseType, clientId, redirectUri, state];
for (const item of check) {
if (typeof item === 'undefined' || item === null) {
Expand All @@ -69,7 +68,6 @@ export const OpenidAllowPage = () => {
setScope(params.get('scope'));
setResponseType(params.get('response_type'));
setClientId(params.get('client_id'));
setNonce(params.get('nonce'));
setState(params.get('state'));
setRedirectUri(params.get('redirect_uri'));
}, [params]);
Expand Down

0 comments on commit 8841841

Please sign in to comment.