diff --git a/src/main/java/cokr/xit/base/boot/SecurityConfig.java b/src/main/java/cokr/xit/base/boot/SecurityConfig.java index 119a1b0..ac8a040 100644 --- a/src/main/java/cokr/xit/base/boot/SecurityConfig.java +++ b/src/main/java/cokr/xit/base/boot/SecurityConfig.java @@ -12,6 +12,7 @@ import org.springframework.security.config.annotation.web.configuration.EnableWe import org.springframework.security.config.annotation.web.configuration.WebSecurityCustomizer; import org.springframework.security.web.SecurityFilterChain; import org.springframework.security.web.access.intercept.RequestAuthorizationContext; +import org.springframework.security.web.session.HttpSessionEventPublisher; import cokr.xit.base.security.access.ApplicationAccess; import cokr.xit.base.security.authentication.service.bean.AuthenticationServiceBean; @@ -34,6 +35,11 @@ public class SecurityConfig { @Resource(name = "staticResource") private StaticResourceConfig staticResource; + @Bean + public HttpSessionEventPublisher listener() { + return new HttpSessionEventPublisher(); + } + /**SecurityFilterChain을 반환한다. * @param http http-security 설정 * @return SecurityFilterChain