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 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:
      onAuthentication in interface org.springframework.security.web.authentication.session.SessionAuthenticationStrategy
      Overrides:
      onAuthentication in class org.springframework.security.web.authentication.session.RegisterSessionAuthenticationStrategy