【发布时间】:2017-03-10 16:33:21
【问题描述】:
我们有一个使用 IdentityServer4 作为 STS 的 MVC 应用程序。我们已将 STS 中 Client 属性的 access_token 和 identity_token 生命周期设置为四小时。我们还在 MVC 客户端中添加了范围 offline_access。
我们如何从 MVC 客户端中的 STS 刷新 access_token 和/或 identity_token?
什么可行,但我不认为这是一个好的解决方案,即在每个请求上都请求一个新令牌。我们是否应该在 MVC 客户端中跟踪这个时间并调用类似:https://github.com/IdentityServer/IdentityServer4.Samples/blob/293622b8438d27f4c9c2574e43fe92a22560ac6b/Clients/src/MvcHybrid/Controllers/HomeController.cs#L46 或者是否有一些我们可以连接并请求新令牌的事件?
【问题讨论】:
标签: c# asp.net-core openid-connect identityserver4