如何在Windows 10开发者PC上启用IIS 10.0中的失败请求跟踪?
我可以找到IIS7和IIS8.5的说明(参见http://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis-85)但似乎在IIS10中不可用.
根据上述说明,"操作"窗格中的"配置"下应该有一个"失败的请求跟踪"链接 - 但是在屏幕截图中看到它显然不存在: IIS操作窗格的屏幕截图
我试图将我的隐式客户端的AccessTokenLifetime属性设置为90秒.客户端是一个JavaScript应用程序.
但是,在令牌过期后,客户端仍然可以在大约5分钟内访问api范围"api1".
这是IdentityServer4中客户端配置的代码:
// JavaScript Client
new Client
{
ClientId = "js",
ClientName = "JavaScript Client",
AllowedGrantTypes = GrantTypes.Implicit,
AllowAccessTokensViaBrowser = true,
RedirectUris = { "http://localhost:5003/callback.html" },
PostLogoutRedirectUris = { "http://localhost:5003/index.html" },
AllowedCorsOrigins = { "http://localhost:5003" },
AllowedScopes =
{
IdentityServerConstants.StandardScopes.OpenId,
IdentityServerConstants.StandardScopes.Profile,
"api1"
},
AccessTokenLifetime = 90
}
Run Code Online (Sandbox Code Playgroud)
我正在使用来自IdentityServer github repo的Javascript快速入门解决方案https://github.com/IdentityServer/IdentityServer4.Samples/tree/release/Quickstarts/7_JavaScriptClient