Class OAuth2ServletSessionConfiguration
java.lang.Object
cn.herodotus.engine.oauth2.authorization.config.OAuth2ServletSessionConfiguration
@Configuration(proxyBeanMethods=false)
public class OAuth2ServletSessionConfiguration
extends Object
Description: OAuth2 Session 共享配置
- Author:
- : gengwei.zheng
- Date:
- : 2023/8/27 16:05
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.web.session.HttpSessionEventPublisherIf a SessionRegistry @Bean is registered and is an instance of SessionRegistryImpl, a HttpSessionEventPublisher @Bean SHOULD also be registered as it’s responsible for notifying SessionRegistryImpl of session lifecycle events, f or example, SessionDestroyedEvent, to provide the ability to remove the SessionInformation instance.voidsessionManagementConfigurerCustomer(org.springframework.security.core.session.SessionRegistry sessionRegistry) <S extends org.springframework.session.Session>
org.springframework.security.core.session.SessionRegistrysessionRegistry(org.springframework.session.FindByIndexNameSessionRepository<S> sessionRepository)
-
Constructor Details
-
OAuth2ServletSessionConfiguration
public OAuth2ServletSessionConfiguration()
-
-
Method Details
-
postConstruct
@PostConstruct public void postConstruct() -
sessionRegistry
@Bean @ConditionalOnMissingBean public <S extends org.springframework.session.Session> org.springframework.security.core.session.SessionRegistry sessionRegistry(org.springframework.session.FindByIndexNameSessionRepository<S> sessionRepository) -
sessionManagementConfigurerCustomer
@Bean @ConditionalOnMissingBean public OAuth2SessionManagementConfigurerCustomer sessionManagementConfigurerCustomer(org.springframework.security.core.session.SessionRegistry sessionRegistry) -
httpSessionEventPublisher
@Bean @ConditionalOnMissingBean public org.springframework.security.web.session.HttpSessionEventPublisher httpSessionEventPublisher()If a SessionRegistry @Bean is registered and is an instance of SessionRegistryImpl, a HttpSessionEventPublisher @Bean SHOULD also be registered as it’s responsible for notifying SessionRegistryImpl of session lifecycle events, f or example, SessionDestroyedEvent, to provide the ability to remove the SessionInformation instance.- Returns:
HttpSessionEventPublisher
-