mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-02-28 10:29:10 +00:00
Fix OIDC Logout Code Snippets
This commit is contained in:
parent
f372f5cf52
commit
2ba9b6821a
@ -218,17 +218,17 @@ public final class MySpringDataOidcSessionRegistry implements ReactiveOidcSessio
|
||||
// ...
|
||||
|
||||
@Override
|
||||
public void saveSessionInformation(OidcSessionInformation info) {
|
||||
this.sessions.save(info);
|
||||
public Mono<void> saveSessionInformation(OidcSessionInformation info) {
|
||||
return this.sessions.save(info);
|
||||
}
|
||||
|
||||
@Override
|
||||
public OidcSessionInformation(String clientSessionId) {
|
||||
public Mono<OidcSessionInformation> removeSessionInformation(String clientSessionId) {
|
||||
return this.sessions.removeByClientSessionId(clientSessionId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<OidcSessionInformation> removeSessionInformation(OidcLogoutToken token) {
|
||||
public Flux<OidcSessionInformation> removeSessionInformation(OidcLogoutToken token) {
|
||||
return token.getSessionId() != null ?
|
||||
this.sessions.removeBySessionIdAndIssuerAndAudience(...) :
|
||||
this.sessions.removeBySubjectAndIssuerAndAudience(...);
|
||||
|
@ -249,7 +249,7 @@ public final class MySpringDataOidcSessionRegistry implements OidcSessionRegistr
|
||||
}
|
||||
|
||||
@Override
|
||||
public OidcSessionInformation(String clientSessionId) {
|
||||
public OidcSessionInformation removeSessionInformation(String clientSessionId) {
|
||||
return this.sessions.removeByClientSessionId(clientSessionId);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user