【发布时间】:2018-08-01 06:44:12
【问题描述】:
我将 angular-oauth2-oidc 与 Identity Server 4 一起使用。
用户需要通过 OpenId Connect Implicit Flow 登录。我的 ID 和访问令牌存储在网络浏览器 localStorage 中。
当用户打开多个浏览器选项卡,然后用户从其中一个选项卡中注销时,我应该如何处理其余选项卡?
我试图捕捉 session_terminated 事件,他们试图注销用户。但是,它不会将用户重定向回登录页面。
this.oauthService.events.filter(e => e.type ==='session_terminated')
.subscribe(e => {this.oauthService.logout();})
有什么建议吗?谢谢
【问题讨论】:
标签: identityserver4 angular-oauth2-oidc