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
-
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:ReactiveOidcSessionRegistry
Register 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:
saveSessionInformation
in interfaceReactiveOidcSessionRegistry
- Parameters:
info
- theOidcSessionInformation
to use
-
removeSessionInformation
public reactor.core.publisher.Mono<OidcSessionInformation> removeSessionInformation(String clientSessionId) Description copied from interface:ReactiveOidcSessionRegistry
Deregister 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:
removeSessionInformation
in 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:ReactiveOidcSessionRegistry
Deregister 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 eachOidcSessionInformation
returned.- Specified by:
removeSessionInformation
in interfaceReactiveOidcSessionRegistry
- Parameters:
token
- theOidcLogoutToken
- Returns:
- any found
OidcSessionInformation
s, could be empty
-