Skip to content
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

Error missing parameter nonce #160

Open
f-w opened this issue Feb 14, 2021 · 1 comment
Open

Error missing parameter nonce #160

f-w opened this issue Feb 14, 2021 · 1 comment

Comments

@f-w
Copy link

f-w commented Feb 14, 2021

Suppose client runs on http://localhost:8000, OP sends following redirect

http://localhost:8000/oidc-callback#error=invalid_request&error_description=Missing+parameter:+nonce&state=9fc35a9169cd4763975503d6caf6c1bd

Tried https://github.com/perarnborg/vuex-oidc-example same error.
I know this could be caused by extra restrictions my OP imposes. But there is no option to either auto-generate nonce or supply one in config.

@perarnborg
Copy link
Owner

perarnborg commented Jun 12, 2021

Sorry for this late reply.

Are you using the PKCE flow? I believe oidc-client does not set nonce for PKCE, only for implicit flow. But you should be able to set a nonce by sending it in the authenticate calls as an extraQueryParams option:

this.authenticateOidc({ options: { extraQueryParams: nonce }}

See the creator of oidc-client's reply in this issue:
IdentityModel/oidc-client-js#895 (comment)

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

No branches or pull requests

2 participants