Feature Request: Allow Customization of nonce generation in oauth checks #9197
william-will-angi
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
I don't think your issue stems from keycloak requiring uuids to be used as nonce (because that's a rather silly thing to begin with and I have a hard time believing it actually does). It's that keycloak doesn't return you the expected nonce value (not format!) which is a problem that would persist regardless of what you're proposing here. First order of business for you is to find out why an unexpected nonce is returned by keycloak. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
Our open id provider ( keycloak ) requires that nonces be passed in as uuids. Our current flow is throwing the error:
Ideally, we would be able to force next-auth to always send a uuid as the nonce parameter. But currently, it is using the generators utility from openid-client, which doesn't support that. We would like some way of overriding that generation so that we can pass values that Keycloak will treat as valid nonces. I'm open to ideas and willing to contribute if appropriate here.
Thanks!
Proposal
It would be cool if you could pass in a
generators
function or something similar to your Oauth provider configuration to customize it. Something like:I am open to other approaches to accomplish this and I am willing to contribute if this change is appropriate.
Beta Was this translation helpful? Give feedback.
All reactions