[2021-01-14 17:01:32 DBG] IdentityServer4.Hosting.EndpointRouter
Request path /.well-known/openid-configuration/jwks matched to endpoint type Discovery
[2021-01-14 17:01:32 DBG] IdentityServer4.Hosting.EndpointRouter
Endpoint enabled: Discovery, successfully created handler: IdentityServer4.Endpoints.DiscoveryKeyEndpoint
[2021-01-14 17:01:32 INF] IdentityServer4.Hosting.IdentityServerMiddleware
Invoking IdentityServer endpoint: IdentityServer4.Endpoints.DiscoveryKeyEndpoint for /.well-known/openid-configuration/jwks
[2021-01-14 17:01:32 DBG] IdentityServer4.Endpoints.DiscoveryKeyEndpoint
Start key discovery request
我在这里发现某人被张贴为问题的问题类似的问题:
https://github.com/dotnet/aspnetcore/issues/21528
我尝试使用Process Monitor来查找App_offline.htm的来源,但是每个条目都是w2wp.exe操作'createfile'createfile',结果'未找到'名称'。过程监视器输出 我尝试手动放入我自己的app_offline.htm中,而流程监视器将提供完全不同的操作,这使我怀疑实际上没有以前创建的app_offline.htm。也许Windows应用程序事件具有误导性,并且发生了某种崩溃?
任何人都有关于可能出错的建议?
Edit: 因此,进一步研究了这一点,IIS中的IdentityServer4实例似乎在成功地从Token Endpoint发出授权代码令牌后将被回收。我连接了远程调试,并看到当应用程序回收利用时,IIS工作人员使用了100%的CPU使用,并且应用程序的过程内存保持恒定。不知道这是否是有用的信息。 问题的症状是,当我的客户端GUI应用程序的Oidcclient继续在获得授权代码令牌后从UserInfo端点获取UserInfo时;在UserInfo之前,由于“服务器已关闭”而尝试加载发现文档的尝试失败。 tokenendpoint可能会导致中间件卡住或引起回收利用的东西?我假设服务器无法响应DiscoveryEndEndPoint请求,因为TokenendPoint请求中的某些内容导致服务器应用程序在响应DiscoveryEndendPoint请求之前被回收。 今天的尝试,日志现在以:
[2021-01-15 13:01:23 DBG] IdentityServer4.Endpoints.TokenEndpoint
Token request success.
[2021-01-15 13:01:23 VRB] IdentityServer4.Hosting.IdentityServerMiddleware
Invoking result: IdentityServer4.Endpoints.Results.TokenResult