spring-security icon indicating copy to clipboard operation
spring-security copied to clipboard

Custom reactiveUserDetail or custom reactiveAuthenProvider , maximumSessions() not working

Open githubanhduong opened this issue 4 months ago • 1 comments

Describe the bug When i custom reactiveUserDetail or custom reactiveAuthenProvider , maximumSessions() not working

**code @Bean SecurityWebFilterChain filterChain(ServerHttpSecurity http) { http // ... .sessionManagement((sessions) -> sessions .concurrentSessions((concurrency) -> concurrency .maximumSessions(SessionLimit.of(1)) ) ); return http.build(); }

Expected behavior I want a user only exist a session Sample

https://docs.spring.io/spring-security/reference/reactive/authentication/concurrent-sessions-control.html

githubanhduong avatar Oct 12 '24 10:10 githubanhduong