From a18d2e34afc03d13bb1dedacba388148649f9c40 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 1 Aug 2023 16:47:12 +0900 Subject: [PATCH] =?UTF-8?q?HttpSessionEventPublisher=EB=A5=BC=20=20sesseio?= =?UTF-8?q?nEventListener=EB=A1=9C=20=EB=93=B1=EB=A1=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/base/boot/SecurityConfig.java | 6 ++++++ 1 file changed, 6 insertions(+) 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