OpenIddict – 内省在Docker中不起作用

在Docker中,反思不起作用,在.net core 2.0 web api中开发的微服务,使用openiddict的设置和使用隐式stream的代码。 容器端口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+&lt;GetDocumentAsync&gt;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+&lt;GetConfigurationAsync&gt;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. 

Interesting Posts