gpt4 book ai didi

azure - 登录时"AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application"

转载 作者:行者123 更新时间:2023-12-01 21:53:07 26 4
gpt4 key购买 nike

我尝试按照 this tutorial 创建一个使用 Microsoft Graph API 的应用,但当我单击“使用 Microsoft 登录”按钮时收到以下错误:

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: (the guid that is my application ID)

我在 Azure 应用程序配置门户中向我的应用程序的重定向 URL 列表中添加了几个 URL - 一个用于另一个 Web 应用程序,我希望最终将其与 ( http://localhost:31503 ) 集成,教程中列出了一个 ( http://localhost:44368 ),以及 IIS Express 运行教程应用程序的那个 (http://localhost:7360)。即使添加了所有这些 URL 之后,我仍然收到此错误 - 可能发生了什么?为什么我无法登录?

最佳答案

本教程中有一个错误。您应该在 Azure 门户上添加 https://localhost:44368/,而不是 http://localhost:44368/

顺便说一句,对于不匹配问题,有一个通用的解决方案。就像@Marc所说,你可以跟踪auth请求url来找到redirect_uri参数。请求 url 类似于

https://login.microsoftonline.com/{tenant}/oauth2/authorize? client_id=6731de76-14a6-49ae-97bc-6eba6914391e &response_type=code &redirect_uri=http%3A%2F%2Flocalhost%3A12345 &response_mode=query &resource=https%3A%2F%2Fservice.contoso.com%2F &state=12345

点击登录按钮后,在输入帐户之前,您将看到请求网址。

enter image description here

关于azure - 登录时"AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58867167/

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