且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2023-10-28 10:16:46

使用 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.