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-05 07:26:54 27 4
gpt4 key购买 nike

我创建了一个 API 应用程序并将其部署到 Azure。该应用程序使用 Active Directory 身份验证。
我收到以下错误

AADSTS50011: The reply url specified in the request does not match the reply urls configured for the application: 00000000-0000-4f27-0000-00000000.

到目前为止的步骤

  • 启用 Active Directory 身份验证
  • 将 CORS 设置为 *
  • 将回复 URL 设置为同一地址 https://myapp.azurewebsites.net/
  • 我在网络配置中添加了以下设置

配置

  <add key="ida:AADInstance" value="https://login.microsoftonline.com/{0}"></add>
<add key="ida:PostLogoutRedirectUri" value="https://myapp.azurewebsites.net/"></add>

api的代码如下

[HttpGet]
[SwaggerResponse(HttpStatusCode.OK,
Type = typeof(IEnumerable<Contact>))]
public async Task<IEnumerable<Contact>> Get()
{
return await GetContacts();
}

最佳答案

当您尝试对应用程序进行身份验证时,获取 Fiddler 跟踪,了解您的浏览器所经历的情况。应该向 AAD 发送请求进行身份验证的请求,其中还包括回复 URL。确保它与您的应用在 AAD 中配置的相同。

关于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/54201663/

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