Multiple Providers - Can't change provider id #6797
Unanswered
Cantinaband
asked this question in
Help
Replies: 2 comments
-
Note, you don't need to spread the config into a new object, we already deep merge your config with the default. I believe the following config should be enough in your case: providers: [
AzureADB2CProvider({
id: 'test-flow',
tenantId: AZURE_AD_B2C_TENANT_NAME,
primaryUserFlow: AZURE_AD_B2C_PRIMARY_USER_FLOW,
clientId: AZURE_AD_B2C_CLIENT_ID,
authorization: { params: { scope: AZURE_AD_B2C_SCOPE } },
client: { token_endpoint_auth_method: 'none' },
checks: ['pkce'],
idToken: true,
profile(profile) {
profile.id = profile.sub
return profile
}
})
] But it's hard to tell why it would not work, a reproduction repository could help investigating. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 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.
-
Question 💬
Hi,
we have multiple user flows (signIn & signUp) configured in azure ad b2c. The plan is to add multiple providers in the NextAuthOptions and select the flows in the signIn() method with the id. But after changing the id of the azure ad b2c provider the login isn't working anymore. Only signIn('azure-ad-b2c') is working.
Any idea?
How to reproduce ☕️
so i would expect that signIn("test-flow") is working. But nothing happens...
Contributing 🙌🏽
No, I am afraid I cannot help regarding this
Beta Was this translation helpful? Give feedback.
All reactions