Introspect不适用于Docker,在.net core 2.0 web api中开发的微服务,使用openiddict设置的微服务和使用Implicit flow的代码。容器端口80映射到运行身份微服务的主机机器32774,并且在32775端口上,当从邮递员调用其他服务授权方法时导致跟随错误。
<h1>An unhandled exception occurred while processing the request.</h1>
<div class="titleerror">CurlException: Couldn't connect to server</div>
<p class="location">System.Net.Http.CurlHandler.ThrowIfCURLEError(CURLcode error)</p>
<div class="titleerror">HttpRequestException: An error occurred while sending the request.</div>
<p class="location">System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()</p>
<div class="titleerror">IOException: IDX10804: Unable to retrieve document from: 'http://localhost:32774/.well-known/openid-configuration'.</div>
<p class="location">Microsoft.IdentityModel.Protocols.HttpDocumentRetriever+<GetDocumentAsync>d__8.MoveNext()</p>
<div class="titleerror">InvalidOperationException: IDX10803: Unable to obtain configuration from: 'http://localhost:32774/.well-known/openid-configuration'.</div>
<p class="location">Microsoft.IdentityModel.Protocols.ConfigurationManager+<GetConfigurationAsync>d__24.MoveNext()</p>
系统日志中出现以下错误
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{D63B10C5-BB46-4990-A94F-E40B9D520160}
and APPID
{9CA88EE3-ACB7-47C8-AFC4-AB702511C276}
to the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.