-
Notifications
You must be signed in to change notification settings - Fork 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
Sign In/ Sign Up redirect throwing an error. #669
Comments
This is definitely an issue, I encountered this as well when following MS' tutorials on B2C setup for .NET 6 |
Same here, I encountered the same exact issue when following the instrcutions at https://learn.microsoft.com/en-us/azure/active-directory-b2c/configure-authentication-sample-web-app?tabs=visual-studio for the sample project at https://github.com/Azure-Samples/active-directory-aspnetcore-webapp-openidconnect-v2/tree/master/1-WebApp-OIDC/1-5-B2C |
Have the exact same problem following same tutorials. Adding the following snippet in Program.cs (or ConfigureServices in Startup.cs if you're using the old web app scaffolding) seems to solve the problem for the Sign In piece.
You also need to create a ClientSecret under Azure AD -> App Registrations -> [App] -> Clients & secrets and then add the ClientSecret variable to the appsettings.json under the AzureAdB2C Unfortunately this only solves the problem for SignIn/Signout. The Edit Profile user flow still does not work with this workaround. |
Can replicate this. Bit of a pain. |
Ran into this as well. Please fix the docs! |
Any updates on this? |
Same problem here, any update? |
Same issue |
I'm running into the same issue (which I've described here: https://stackoverflow.com/questions/78887827/aadb2c90057-the-provided-application-is-not-configured-to-allow-the-oauth-im). Should this sample (1-5-B2C) now be working? Is this a documentation issue, or is it a feature problem? If the former, might there be a working example available somewhere? |
This issue is still unresolved? Are there any workaround at least? Why use this tech if you're going to run into more problems than you would managing your own user database? |
This issue is for a: (mark with an
x
)The issue was found for the following scenario:
Please add an 'x' for the scenario(s) where you found an issue
Repro-ing the issue
Repro steps
Already had a b2c tenant configured to work with this sample specifically.
Expected behavior
Click the sign in button after running the app and being redirected to the flow for the policy of sign in configured on the b2c tenant.
Actual behavior
it throws the following error:
Additional context/ Error codes / Screenshots
Somehow, it work as expected in one instance. After changing from a non proxied wifi to one more secure, it redirected me correctly and I manage to do a sign up but, changed the wifi to the non proxied on and it continue to throw the above mentioned error. Did not changed anything else on the code. After that point, it continued to throw the before mention error even when changing to the same wifi as before.
The test where to see how the url compares to the one generated by the flow test at the azure portal since it works there.
Any log messages given by the failure
Add any other context about the problem here, such as logs.
OS and Version?
Versions
Attempting to troubleshooting yourself:
Found a similar issue:
https://github.com/MicrosoftDocs/azure-docs/issues/97080
and did the change to check all the options as follow:
The text was updated successfully, but these errors were encountered: