Reco Jhonatan
Reco Jhonatan

Reputation: 1623

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application Python

I try to use the quickstart of sign-in with Microsoft but when I try to log an error appear:

Error

in my config file i have this parameters:

config file

and in the app config i have this paramter:

redirect url

i dont know what is happening :(

Thanks for the help! :D

Upvotes: 1

Views: 6984

Answers (2)

Gib
Gib

Reputation: 16

I encountered the same error. For me, the issue was that I was navigating to url that flask provides when it starts: http://127.0.0.1:5000/login rather than http://localhost:5000/login which is the url that the app registration is looking for.

Upvotes: 0

Md Farid Uddin Kiron
Md Farid Uddin Kiron

Reputation: 22409

Your Redirect_Path should be same with azure portal Redirect URIs.

enter image description here

Note: Protocol matters. AAD will treat http://localhost/logfinal/ and https://localhost/logfinal/ as different reply URLs. If you are still having an issue after following the steps above, check that the configured reply URL matches the protocol you're actually using.

Hope this would help. Additionally, please refer to Official document for more details.

Upvotes: 1

Related Questions