-
Notifications
You must be signed in to change notification settings - Fork 194
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
Specifying a custom redirect URI in the PublicClientApplication #574
Comments
What "other application type" uses the bare localhost? Note that there are different types (known as "platforms") of applications. Typically, one app (identified by its unique client_id) can target multiple platforms, such as a "Web" platform using redirect URI |
The exact situation you are talking about, but in reverse. |
Out of curiosity, why is an in-production SPA app would use localhost as redirect URI? Shouldn't localhost be only for development purpose, and shouldn't the production redirect URI contain |
There is of course interesting historical reasoning for this for us. I'm advocating for feature parity with the ms auth library for c#, which does support these paths. |
By any chance the website hosting your SPA app is publicly accessible so that I can take a quick look? |
Describe the bug
Unable to specify a redirectURI in the form
http://localhost:1234/MyApp
when creating aPublicClientApplication
or using that withacquire_token_interactive
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Using other packages like the C# one, we have been able to access this API.
What you see instead
AADSTS50011: The redirect URI 'http://localhost:49686' specified in the request does not match the redirect URIs configured for the application
The MSAL Python version you are using
1.22.0
Additional context
We cannot change the redirect URI on the application because there is another application type that uses the bare localhost, and other connecting applications expect the http://localhost:1234/MyApp redirect URI. I see the docs say
The text was updated successfully, but these errors were encountered: