WSO2 - 限制同一用户同时登录

问题描述:

我已经将基于 Java jar 的应用程序与 WSO2 身份服务器集成在一起,该应用程序具有登录门户,而可以通过不同的系统和浏览器同时使用同一用户登录.有什么方法可以限制 WSO2 服务器端的同时或并发登录.如果有任何方法可以防止同一用户同时登录,请告诉我.谢谢

I've integrated Java jar based application with WSO2 identity server, this application has login portal whereas it is possible to login with same user simultaneously through different systems and browser. Is there any way to restrict Simultaneous or concurrent login at WSO2 server end. if there is any way to prevent concurrent logins with same user then please let me know. thanks

使用 IS 5.3.0,您可以找到给定用户的所有登录会话.要做到这一点,您需要为登录流程编写一个拦截器,并检查该用户是否已经有登录会话 - 如果是,则身份验证失败.

With IS 5.3.0 you can find all the login sessions of a given user. To get this done you need to write an interceptor for the login flow and check whether that user has a login session already - and if so fail the authentication.