Class InMemoryReactiveOidcSessionRegistry
java.lang.Object
org.springframework.security.oauth2.client.oidc.server.session.InMemoryReactiveOidcSessionRegistry
- All Implemented Interfaces:
ReactiveOidcSessionRegistry
public final class InMemoryReactiveOidcSessionRegistry
extends Object
implements ReactiveOidcSessionRegistry
An in-memory implementation of
ReactiveOidcSessionRegistry- Since:
- 6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<OidcSessionInformation>removeSessionInformation(String clientSessionId) Deregister the OIDC Provider session tied to the provided client session.reactor.core.publisher.Flux<OidcSessionInformation>Deregister the OIDC Provider sessions referenced by the provided OIDC Logout Token by its session id or its subject.reactor.core.publisher.Mono<Void>Register a OIDC Provider session with the provided client session.
-
Constructor Details
-
InMemoryReactiveOidcSessionRegistry
public InMemoryReactiveOidcSessionRegistry()
-
-
Method Details
-
saveSessionInformation
Description copied from interface:ReactiveOidcSessionRegistryRegister a OIDC Provider session with the provided client session. Generally speaking, the client session should be the session tied to the current login.- Specified by:
saveSessionInformationin interfaceReactiveOidcSessionRegistry- Parameters:
info- theOidcSessionInformationto use
-
removeSessionInformation
public reactor.core.publisher.Mono<OidcSessionInformation> removeSessionInformation(String clientSessionId) Description copied from interface:ReactiveOidcSessionRegistryDeregister the OIDC Provider session tied to the provided client session. Generally speaking, the client session should be the session tied to the current logout.- Specified by:
removeSessionInformationin interfaceReactiveOidcSessionRegistry- Parameters:
clientSessionId- the client session- Returns:
- any found
OidcSessionInformation, could benull
-
removeSessionInformation
public reactor.core.publisher.Flux<OidcSessionInformation> removeSessionInformation(OidcLogoutToken token) Description copied from interface:ReactiveOidcSessionRegistryDeregister the OIDC Provider sessions referenced by the provided OIDC Logout Token by its session id or its subject. Note that the issuer and audience should also match the corresponding values found in eachOidcSessionInformationreturned.- Specified by:
removeSessionInformationin interfaceReactiveOidcSessionRegistry- Parameters:
token- theOidcLogoutToken- Returns:
- any found
OidcSessionInformations, could be empty
-