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 java.lang.Object implements org.springframework.security.web.server.authentication.logout.ServerLogoutHandler
-
-
Constructor Summary
Constructors Constructor Description KeycloakLogoutHandler(org.springframework.web.reactive.function.client.WebClient webClient, java.lang.String serverUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Mono<java.lang.Void>
logout(org.springframework.security.web.server.WebFilterExchange exchange, org.springframework.security.core.Authentication authentication)
reactor.core.publisher.Mono<java.lang.Void>
logoutFromKeycloak(java.lang.String idToken)
-
-
-
Method Detail
-
logout
public reactor.core.publisher.Mono<java.lang.Void> logout(org.springframework.security.web.server.WebFilterExchange exchange, org.springframework.security.core.Authentication authentication)
- Specified by:
logout
in interfaceorg.springframework.security.web.server.authentication.logout.ServerLogoutHandler
-
logoutFromKeycloak
public reactor.core.publisher.Mono<java.lang.Void> logoutFromKeycloak(java.lang.String idToken)
-
-