Replies: 3 comments 2 replies
-
I think you misunderstood this configuration. The authorization URL definition: https://datatracker.ietf.org/doc/html/rfc6749#section-3.1
|
Beta Was this translation helpful? Give feedback.
-
Sorry, my bad. But is there a way to set the redirect url when signing in ? |
Beta Was this translation helpful? Give feedback.
-
Yes, you can control this via the redirect callback options:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Provider type
Keycloak
Environment
Binaries:
Node: 17.3.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.17 - ~\AppData\Roaming\npm\yarn.CMD
npm: 8.3.0 - C:\Program Files\nodejs\npm.CMD
npmPackages:
next: 12.0.7 => 12.0.7
next-auth: ^4.3.1 => 4.3.1
react: 17.0.2 => 17.0.2
Reproduction URL
Describe the issue
Im using keycloak as a provider and the default setup works out of the box.
Now i need to redirect the users first to the registration form. So i tried to override the authorization url, but i still get redirected to the default url.
How to reproduce
Set keycloak as a provider. Change the authorization property and add a custom url.
call signIn with keycloak.
signIn('keycloak', null, { ui_locales: locale });
Expected behavior
Expect to be redirected to "/registrations" not "/auth"
As for local development it is:
"http://localhost:8024/auth/realms/my-realm/protocol/openid-connect/auth" + params.
but it should be
"http://localhost:8024/auth/realms/my-realm/protocol/openid-connect/registrations" + params
Beta Was this translation helpful? Give feedback.
All reactions