SpringSecurityService:记录其他用户吗? [英] SpringSecurityService: Log other user out?

查看:144
本文介绍了SpringSecurityService:记录其他用户吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以用 springSecurityService 来记录其他人吗?



(例如,if一个普通用户离开那天并忘记注销,并且经理希望将他们的账户注销。)

springSecurityService 本身不具备此功能。然而,没有任何东西阻止你创建你自己的 ServletFilter 来跟踪会话ID和安全主体,并暴露一个控制器以及使用登录无效相关会话的页面。


Is there any way, with springSecurityService, to log someone else out?

(For example, if a regular user leaves for the day and forgets to logout, and the manager wants to log their account out.)

解决方案

The springSecurityService itself does not have this capability.

However, nothing is stopping you from creating your own ServletFilter to track session ids and security principals and expose a controller and pages to invalidate the associated session with a login.

这篇关于SpringSecurityService:记录其他用户吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆