diff --git a/web/src/pages/allow/OpenidAllowPage.tsx b/web/src/pages/allow/OpenidAllowPage.tsx index ad1fa2ad7..04bdcee7d 100644 --- a/web/src/pages/allow/OpenidAllowPage.tsx +++ b/web/src/pages/allow/OpenidAllowPage.tsx @@ -27,7 +27,6 @@ export const OpenidAllowPage = () => { const [scope, setScope] = useState(''); const [responseType, setResponseType] = useState(''); const [clientId, setClientId] = useState(''); - const [nonce, setNonce] = useState(''); const [redirectUri, setRedirectUri] = useState(''); const [state, setState] = useState(''); const [name, setName] = useState(''); @@ -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) { @@ -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]);