-
Notifications
You must be signed in to change notification settings - Fork 192
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
Web Authentication NOT WORKING AADSTS50011: The redirect URI 'http://localhost:37997/' specified in the request does not match the redirect URIs configured for the application #321
Comments
Currently testing in local environment |
The redirectUri we use for the example is: redirectUri: 'https://login.microsoftonline.com/common/oauth2/nativeclient'. Have you tried troubleshooting with ChatGPT? |
Yes I tried troubleshooting with ChatGPT and it gave me the response
and aren't we using https://login.live.com/oauth20_desktop.srf(live sdk) I tried adding an additional redirectUri and when i did that i got redirected to a blank white page having the url I have obfuscated the information for the given highlighted words in the url |
is this present in the readme if it is then sorry it's my bad i didn't check |
Just a quick check in i changed the redirect url but i am getting the same error AADSTS50011 |
Can you show your AadOauth config object? The Note that config changes in Azure AD can take 10-20 minutes to activate, so changing the redirect url in Azure requires a bit of patience before testing. |
Here is my AadOauth config object and when i use it i sign-in to my account and then nothing happens only a blank white screen appears
|
In your original post you mention you are developing a Flutter Web application and you are using the redirect flow. In that case your Note that the redirect URL needs to be configured as valid redirect URL in Azure B2C and the route needs to be able to handle the auth token. |
@tigloo You are Absolutely Right and i have tried that by changing the redirectUri to my prod web app url and as you have seen below i have added an Additional url in the Azure AD portal but i have no idea how to configure the redirect URL as valid redirect URL in Azure B2C and how to make this redirect url to be able to handle the auth token
|
The redirect url you entered above has been entered for a mobile/desktop app. You need to configure an SPA app for Flutter web to work. Also make sure that your are starting with the claims " offline_access" first. |
When i do Web Authentication for my flutter Web App and i try to Sign-in a Microsoft Account after filling in the details i am getting the Error
@loetsphi @josemiguelvarela can you help
The text was updated successfully, but these errors were encountered: