gpt4 book ai didi

python - AADSTS50011 : The reply URL specified in the request does not match the reply URLs configured for the application. 如何指定重定向 URI?

转载 作者:行者123 更新时间:2023-12-03 01:26:16 24 4
gpt4 key购买 nike

我正在遵循此说明:https://github.com/Azure-Samples/ms-identity-python-webapp之后,我收到以下错误:

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

代码给出了结果:

 * Serving Flask app "__main__" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [21/Jan/2021 12:09:14] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [21/Jan/2021 12:09:14] "GET /login HTTP/1.1" 200 -

如何正确指定重定向 URI,以便我可以登录?我目前已尝试 https://127.0.0.1:5000/和 https://localhost:5000/

最佳答案

正如您的错误消息所示,您必须确保您在代码中配置的重定向 URI 与您在 Azure 门户中配置的重定向 URI 完全相同。

enter image description here

有一个general solution对于不匹配的问题:

当您访问应用程序 url 时,您将被重定向到登录页面。解码授权请求URL,您会发现redirect_uri,复制redirect_uri的值并将其粘贴到azure门户中,然后重试。

enter image description here

关于python - AADSTS50011 : The reply URL specified in the request does not match the reply URLs configured for the application. 如何指定重定向 URI?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65824309/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com