登出任何客户端后,自动注销Identity Server中的所有活动客户端 [英] Automatically Signout all active clients in Identity server once logout of any client
问题描述
我正在使用Identity Server 3进行单点登录,并且正在使用3个客户端应用程序.登录任何客户端应用程序后,其余两个应用程序将不再询问身份验证凭据.
I'm using Identity Server 3 for Single Sign on and I'm having 3 client application. Once I logged in any of the Client application, the rest of the two applications, won't ask the Authenticate credentials.
它在登录"中工作正常,但在登录"中,当前客户端已注销,但是两个应用程序的其余部分未自动重定向到Identity Server的登录页面.
Its working fine in Log-in but in Signout the current Client gets logged out but the rest of the two applications not automatically redirecting to the log-in page of Identity Server.
在这方面请帮助我.
推荐答案
由于您在注释中说客户端是JavaScript客户端,因此可以使用 userSignedOut
应该触发当用户从其他客户端注销时.
Since you said in the comments that your client is a JavaScript client, you can use the oidc-client-js lib from the guys behind IdentityServer. It has an event userSignedOut
which should fire when the user is signed out from a different client.
这篇关于登出任何客户端后,自动注销Identity Server中的所有活动客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!