HttpSessionEventPublisher를 sesseionEventListener로 등록

master
mjkhan21 1 year ago
parent c727c5dec4
commit a18d2e34af

@ -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

Loading…
Cancel
Save