SpringSession+SpringSecurity中如何保存Authentication到Session中的Attribute

 

org.springframework.security.web.context.SecurityContextPersistenceFilter#doFilter(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, javax.servlet.FilterChain)

 

org.springframework.security.web.context.HttpSessionSecurityContextRepository#saveContext

 

SPRING_SECURITY_CONTEXT

org.springframework.session.data.redis.RedisIndexedSessionRepository#SPRING_SECURITY_CONTEXT

 org.springframework.security.web.context.HttpSessionSecurityContextRepository#SPRING_SECURITY_CONTEXT_KEY

 







org.springframework.security.web.context.HttpSessionSecurityContextRepository.SaveToSessionResponseWrapper#saveContext

 

 

org.springframework.session.web.http.HttpSessionAdapter#setAttribute

 

org.springframework.session.data.redis.RedisIndexedSessionRepository.RedisSession#setAttribute

 

 

SpringSecurity在登出时使用如何使用这个

org.springframework.session.security.web.authentication.SpringSessionRememberMeServices#logout(javax.servlet.http.HttpServletRequest)

 

posted @   沧海一滴  阅读(81)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
历史上的今天:
2016-12-18 帮你深入理解OAuth2.0协议
2016-12-18 使用Redis来实现LBS的应用
2016-12-18 查看docker中container的ip
2016-12-18 PAC自动代理文件格式,教你如何写PAC文件
2015-12-18 synchronized 专题
点击右上角即可分享
微信分享提示