AADSTS50011:请求中指定的回复 URL 与为应用程序 Python 配置的回复 URL 不匹配

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

我尝试使用 Microsoft 登录快速入门,但是当我尝试记录时出现错误:

在我的配置文件中我有这个参数:

在应用程序配置中我有这个参数:

我不知道发生了什么:(

感谢您的帮助! :D

您的 Redirect_Path 应该与 azure portal Redirect URIs 相同。

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.

希望这会有所帮助。此外,请参阅Official document了解更多详情。

我遇到了同样的错误。对我来说,问题是我导航到烧瓶启动时提供的url:http://127.0.0.1:5000/login而不是http://localhost:5000/login,这是应用程序注册正在寻找的url .