gpt4 book ai didi

azure - OAuth2 配置问题 : AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application:

转载 作者:行者123 更新时间:2023-12-03 02:50:27 25 4
gpt4 key购买 nike

尝试让 Oauth2.0 在我的 Azure 空间中与 APIM 配合使用。

我已经导入并设置了 2.0 Open API 作为后端。我使用 APIM 开发人员门户作为客户端来调用此后端 API。我将开发门户应用程序 ID 作为客户端 ID 并使用其客户端 key 。我尝试使用提供的redirect_uri作为授权代码作为回复url,并尝试使用app.com/auth来解决同样的问题

当我从开发者控制台调用 API 时,我提示登录。然后我登录并收到以下错误:

AADSTS50011:请求中指定的回复 URL 与为应用程序配置的回复 URL 不匹配:“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”。

任何帮助将不胜感激

最佳答案

请遵循此document通过将 OAuth 2.0 与 Azure Active Directory 结合使用来保护您的 API。

注意:本文档适用于应用注册(旧版)。如果您使用App注册,会有与文档不同的内容。

enter image description here

您的客户端应用配置的回复网址似乎不正确。

点击OAuth2.0->点击你的oauth2服务->你会找到redirect_uri。

enter image description here

转到您的客户端应用,并将回复网址替换为此redirect_uri。

enter image description here

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

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