Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void saveSessionInformation(OidcSessionInformation info) {
}

@Override
public OidcSessionInformation removeSessionInformation(String clientSessionId) {
public @Nullable OidcSessionInformation removeSessionInformation(String clientSessionId) {
OidcSessionInformation information = this.sessions.remove(clientSessionId);
if (information != null) {
this.logger.trace("Removed client session");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package org.springframework.security.oauth2.client.oidc.session;

import org.jspecify.annotations.Nullable;

import org.springframework.security.oauth2.client.oidc.authentication.logout.OidcLogoutToken;

/**
Expand Down Expand Up @@ -44,7 +46,7 @@ public interface OidcSessionRegistry {
* @param clientSessionId the client session
* @return any found {@link OidcSessionInformation}, could be {@code null}
*/
OidcSessionInformation removeSessionInformation(String clientSessionId);
@Nullable OidcSessionInformation removeSessionInformation(String clientSessionId);

/**
* Deregister the OIDC Provider sessions referenced by the provided OIDC Logout Token
Expand Down
Loading