[英]How to configure Azure AAD in API Management and call API Management endpoints from web/console app in .NET
我已经阅读了以下几篇文章
https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-protect-backend-with-aad
但它没有用。
我收到AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '24gktm5-5khpnj3h9nphkmm=h-hh2h58h9'
错误AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '24gktm5-5khpnj3h9nphkmm=h-hh2h58h9'
。
我已经按照提到的所有内容进行操作,但没有找到我做错的地方。
也可以有人共享代码以从控制台应用程序调用 APIM 端点。
AD 应用程序的重定向 URI(应用程序 ID:24gktm5-5khpnj3h9nphkmm=h-hh2h58h9)需要包含来自 APIM 下 OAuth 配置的 URI。
从 APIM 的 OAuth 设置中,在您输入客户端密钥的位置下,您应该看到“这是授权代码授权类型的 redirect_uri 的样子”,将此 URL 复制到您的 AD 应用注册的重定向 URI 中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.