Package com.arms.config.handler
Class KeycloakLogoutHandler
java.lang.Object
com.arms.config.handler.KeycloakLogoutHandler
- All Implemented Interfaces:
org.springframework.security.web.server.authentication.logout.ServerLogoutHandler
@Component
public class KeycloakLogoutHandler
extends Object
implements org.springframework.security.web.server.authentication.logout.ServerLogoutHandler
-
Constructor Summary
ConstructorsConstructorDescriptionKeycloakLogoutHandler(org.springframework.web.reactive.function.client.WebClient webClient, String serverUrl) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>logout(org.springframework.security.web.server.WebFilterExchange exchange, org.springframework.security.core.Authentication authentication) reactor.core.publisher.Mono<Void>logoutFromKeycloak(String idToken)
-
Constructor Details
-
KeycloakLogoutHandler
public KeycloakLogoutHandler(org.springframework.web.reactive.function.client.WebClient webClient, @Value("${spring.security.oauth2.client.registration.middle-proxy.server-url}") String serverUrl)
-
-
Method Details
-
logout
public reactor.core.publisher.Mono<Void> logout(org.springframework.security.web.server.WebFilterExchange exchange, org.springframework.security.core.Authentication authentication) - Specified by:
logoutin interfaceorg.springframework.security.web.server.authentication.logout.ServerLogoutHandler
-
logoutFromKeycloak
-