Class HerodotusSessionAuthenticationStrategy
java.lang.Object
org.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy
cn.herodotus.engine.oauth2.authorization.servlet.HerodotusSessionAuthenticationStrategy
- All Implemented Interfaces:
org.springframework.security.web.authentication.session.SessionAuthenticationStrategy
public class HerodotusSessionAuthenticationStrategy
extends org.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy
Description: 自定义扩展 SessionAuthenticationStrategy
扩展 SessionAuthenticationStrategy 以支持 FindByIndexNameSessionRepository.PRINCIPAL_NAME_INDEX_NAME 的设置。
- Author:
- : gengwei.zheng
- Date:
- : 2023/9/5 14:01
-
Constructor Summary
ConstructorsConstructorDescriptionHerodotusSessionAuthenticationStrategy(org.springframework.security.core.session.SessionRegistry sessionRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidonAuthentication(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-
Constructor Details
-
HerodotusSessionAuthenticationStrategy
public HerodotusSessionAuthenticationStrategy(org.springframework.security.core.session.SessionRegistry sessionRegistry)
-
-
Method Details
-
onAuthentication
public void onAuthentication(org.springframework.security.core.Authentication authentication, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) - Specified by:
onAuthenticationin interfaceorg.springframework.security.web.authentication.session.SessionAuthenticationStrategy- Overrides:
onAuthenticationin classorg.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy
-