我创建了一个 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/
相关文章:
php - 如何为 Composer 创建分支别名并使用它?
performance - Html-Webpack-Plugin 在多个 pug 文件上非常慢
sql - Presto SQL 窗口聚合回顾 x 小时/分钟/秒
laravel - 错误 "Installation failed, reverting ./com
sql-server - 来自 Azure 网站的 Azure VM SQL Server Inte
azure - 确定特定 SessionId 的 Azure 服务总线队列上有多少消息
reactjs - 用于 Web 的 React 向上滑动面板
r - 使用 R 中的 DBI 和 ActiveDirectoryPassword 身份验证连接到