-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SvelteKitAuth giving “response” is not a conform Authorization Server Metadata response on Sign in #7809
Comments
Here is my working configuration : AzureADB2C({
issuer: `https://${B2C_TENANT}.b2clogin.com/${B2C_TENANT_ID}/v2.0/`,
wellKnown: `https://${B2C_TENANT}.b2clogin.com/${B2C_TENANT}.onmicrosoft.com/${B2C_POLICY}/v2.0/.well-known/openid-configuration`,
authorization: {
url: `https://${B2C_TENANT}.b2clogin.com/${B2C_TENANT}.onmicrosoft.com/${B2C_POLICY}/oauth2/v2.0/authorize`,
params: { scope: B2C_CLIENT_ID }
},
token: `https://${B2C_TENANT}.b2clogin.com/${B2C_TENANT}.onmicrosoft.com/${B2C_POLICY}/oauth2/v2.0/token`,
clientId: B2C_CLIENT_ID,
clientSecret: B2C_CLIENT_SECRET,
allowDangerousEmailAccountLinking: true
}) Hope it helps |
This was very helpful. But after applying your sugesstions I am getting a problem with the redirect uri. To be precise the error in the GET path is:
In the Azure b2c I have the SPA app with the URL pointing to a localhost domain. |
I encounter the same error, but with Auth0 as a provider. I created a discussion here https://github.com/orgs/vercel/discussions/4591, but it seems like this would be a better place. |
Hello @Assassyn, I haven't work on this recently, so it will be difficult to find the working config I had. Maybe try to add http://localhost:5173/auth/callback/azure-ad-b2c as a redirect URI in Azure B2C (SPA and / or web) |
Hello @KillianGDK-FDTI , the url fix worked. I even managed to find the information about it on other providers. However, now I have an issue with
I hope that documentation is better for this case. EDITED:
However, when it is specified, I am getting an error response from Azure AAD b2c:
So this is caused by misconfiguration on my side but I am not sure what I did wrong. EDIT2: Following the ticket on next-auth: #4706 I did manage to move little bit forward but now I am failing on missing the access_token in my response:
|
same problem but I'm using nextjs |
Provider type
Azure Active Directory B2C
Environment
Reproduction URL
Client project. Using svelte.
Describe the issue
I'm using SvelteKitAuth with the AzureADB2C provider, but it fails whenever I try to sign in.
Here's my code:
How to reproduce
Expected behavior
Should be prompted with a sign in form
The text was updated successfully, but these errors were encountered: