Error missing parameter nonce
f-w opened this issue · 1 comments
f-w commented
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 commented
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)