IDX10108:根据HTTPS方案指定的地址无效

时间:2018-03-27 20:36:24

标签: asp.net identityserver4

我希望有人能帮我解决问题。我知道之前已经发布了类似的问题,我通过他们看了所有问题。到目前为止,这些解决方案都没有对我有用。

当我的客户端尝试连接到IdentityServer4时,我收到以下错误:

System.ArgumentException: IDX10108: The address specified is not valid as per HTTPS scheme. Please specify an https address for security reasons. If you want to test with http address, set the RequireHttps property  on IDocumentRetriever to false.

参数名称:http://subdomain.domain.com/.well-known/openid-configuration/jwks    在Microsoft.IdentityModel.Protocols.HttpDocumentRetriever.d__8.MoveNext() ---从抛出异常的先前位置开始的堆栈跟踪结束---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.IdentityModel.Protocols.OpenIdConnect.OpenIdConnectConfigurationRetriever.d__3.MoveNext() ---从抛出异常的先前位置开始的堆栈跟踪结束---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.IdentityModel.Protocols.ConfigurationManager`1.d__24.MoveNext()

从VS 2017运行时,一切都在本地工作正常。当我尝试部署到IIS(7.5)中的登台环境和主机网站时,我开始收到此错误。

我的分段设置: IdentityServer4作为自己的实例运行在ASP.net核心2.0之上。 我的客户端运行在ASP.net核心2.0之上,因为它是自己的实例。

非常感谢任何帮助

1 个答案:

答案 0 :(得分:1)

到目前为止,您很可能已经找到了解决方案,但是今天我遇到了同样的错误并看到了这篇文章。因此,添加我发现的内容,也许其他人将从中受益。

对我来说,我根据配置值形成的授权URL(OpenIdConnectAuthenticationOptions.Authority)不正确,并导致了此错误,并修复了此错误。