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 @ 2023-12-18 16:49  沧海一滴  阅读(46)  评论(0编辑  收藏  举报