Update authorization endpoint for KeyCloak registrations request #11359
Unanswered
tgermain-impirica
asked this question in
Help
Replies: 0 comments
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.
-
The OIDC spec indicates ?prompt=create should be appended to the auth request in order to trigger a registration flow. However, KeyCloak doesn't use that prop, and instead has a separate /registrations endpoint that can be used.
The Auth.js flow works perfectly IF I call "signin" and trace the code. I capture the full URL that will be sent to KeyCloak as a sign in request (to /auth). I copy the string, and simply replace /auth with /registrations and the sign up flow works correctly.
Is there any way in auth.js to augment the signIn function and pass in a replacement authorization_url dynamically, or perhaps have auth.js KeyCloak provider automatically replace /auth with /registrations if the prompt=create param is included in the request?
Beta Was this translation helpful? Give feedback.
All reactions