【问题标题】:IdentityServer event for token cleanup用于令牌清理的 IdentityServer 事件
【发布时间】:2018-06-03 20:19:46
【问题描述】:

我想知道在运行令牌清理作业时是否有在 IdentityServer 4 框架中触发的事件?

我已将第三方系统封装到 IdentityServer 框架中,当 IdentityServer 中的令牌不再有效时需要通知第三方系统清理用户会话...主要是由于令牌已过期。

有什么建议或例子吗?

谢谢 格雷格

【问题讨论】:

    标签: identityserver4


    【解决方案1】:

    此功能目前不存在。请在 github issue tracker 上打开功能请求。

    【讨论】:

    • 谢谢..如果我从事公关工作,这项工作会被考虑贡献吗?
    • 先打开一个问题
    【解决方案2】:

    为了以后的引用,你需要实现IOperationalStoreNotification并将其包含在DI中

    public class MyOperationalStoreNotification : IOperationalStoreNotification
    {
        public Task PersistedGrantsRemovedAsync(IEnumerable<PersistedGrant> persistedGrants) 
        {
            // ... put your code here
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2016-11-13
      • 1970-01-01
      • 2016-09-29
      • 2017-02-02
      • 2013-06-28
      • 2015-10-18
      • 2016-10-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多