作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我创建了一个 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.
到目前为止的步骤
我在网络配置中添加了以下设置
配置
<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/
我是一名优秀的程序员,十分优秀!