Class InMemoryOidcSessionRegistry
java.lang.Object
org.springframework.security.oauth2.client.oidc.session.InMemoryOidcSessionRegistry
- All Implemented Interfaces:
OidcSessionRegistry
An in-memory implementation of
OidcSessionRegistry- Since:
- 6.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionremoveSessionInformation(String clientSessionId) Deregister the OIDC Provider session tied to the provided client session.Deregister the OIDC Provider sessions referenced by the provided OIDC Logout Token by its session id or its subject.voidRegister a OIDC Provider session with the provided client session.
-
Constructor Details
-
InMemoryOidcSessionRegistry
public InMemoryOidcSessionRegistry()
-
-
Method Details
-
saveSessionInformation
Description copied from interface:OidcSessionRegistryRegister 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 interfaceOidcSessionRegistry- Parameters:
info- theOidcSessionInformationto use
-
removeSessionInformation
Description copied from interface:OidcSessionRegistryDeregister 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 interfaceOidcSessionRegistry- Parameters:
clientSessionId- the client session- Returns:
- any found
OidcSessionInformation, could benull
-
removeSessionInformation
Description copied from interface:OidcSessionRegistryDeregister 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 interfaceOidcSessionRegistry- Parameters:
token- theOidcLogoutToken- Returns:
- any found
OidcSessionInformations, could be empty
-