Skip to content

Using nonce and POST in Authorization Code Flow fails to set nonce in Id Token #768

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dgersh opened this issue Oct 7, 2016 · 0 comments · May be fixed by #1032
Open

Using nonce and POST in Authorization Code Flow fails to set nonce in Id Token #768

dgersh opened this issue Oct 7, 2016 · 0 comments · May be fixed by #1032

Comments

@dgersh
Copy link

dgersh commented Oct 7, 2016

In
/oauth2-server-php/src/OAuth2/OpenID/Controller/AuthorizeController.php

in the validateAuthorizeRequest function is the call to
$nonce = $request->query('nonce');

If you are using POST to send your request to the OP, then the function will fail to grab the nonce for use in the Id Token. Needs to be changed to:
``$nonce = $request->request('nonce');`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant