我知道这个问题已经得到解答,但我不明白人们到底在做什么(关于证书,ssl),他们都使用本地主机,但不是我。
我将此示例用作我的示例OpenIdConnect
我在用着:
- 一个网络应用
- 一个网络 API
两者都使用 .Net Core 2.1。Web 应用正在使用 Azure AD 连接来获取 JwtBearer 令牌,该令牌将发送到 API。
在 API 中看到路由/api/information
,从 Web App 向 API 发送请求,API 正在返回上述错误。
确切的错误是:
System.InvalidOperationException: IDX20803: Unable to obtain configuration from: 'https://<mycompany>.onmicrosoft.com/<big Guid of 72 chars>/.well-known/openid-configuration'.
因此,我尝试通过添加证书、添加必要的库(System.Net.Http
v4.3.3)、检查 Azure AD 中的每个权限来解决此错误,但这些都不起作用。
如果您需要更多信息,我可以通过在这篇文章中添加它们来提供它们。