Class WebSessionOAuth2ServerAuthorizationRequestRepository
java.lang.Object
org.springframework.security.oauth2.client.web.server.WebSessionOAuth2ServerAuthorizationRequestRepository
- All Implemented Interfaces:
ServerAuthorizationRequestRepository<OAuth2AuthorizationRequest>
public final class WebSessionOAuth2ServerAuthorizationRequestRepository
extends Object
implements ServerAuthorizationRequestRepository<OAuth2AuthorizationRequest>
An implementation of an
ServerAuthorizationRequestRepository
that stores
OAuth2AuthorizationRequest
in the WebSession
.- Since:
- 5.1
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<OAuth2AuthorizationRequest>
loadAuthorizationRequest
(org.springframework.web.server.ServerWebExchange exchange) Returns theOAuth2AuthorizationRequest
associated to the providedHttpServletRequest
ornull
if not available.reactor.core.publisher.Mono<OAuth2AuthorizationRequest>
removeAuthorizationRequest
(org.springframework.web.server.ServerWebExchange exchange) Removes and returns theOAuth2AuthorizationRequest
associated to the providedHttpServletRequest
or if not available returnsnull
.reactor.core.publisher.Mono<Void>
saveAuthorizationRequest
(OAuth2AuthorizationRequest authorizationRequest, org.springframework.web.server.ServerWebExchange exchange) Persists theOAuth2AuthorizationRequest
associating it to the providedHttpServletRequest
and/orHttpServletResponse
.
-
Constructor Details
-
WebSessionOAuth2ServerAuthorizationRequestRepository
public WebSessionOAuth2ServerAuthorizationRequestRepository()
-
-
Method Details
-
loadAuthorizationRequest
public reactor.core.publisher.Mono<OAuth2AuthorizationRequest> loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerAuthorizationRequestRepository
Returns theOAuth2AuthorizationRequest
associated to the providedHttpServletRequest
ornull
if not available.- Specified by:
loadAuthorizationRequest
in interfaceServerAuthorizationRequestRepository<OAuth2AuthorizationRequest>
- Parameters:
exchange
- theServerWebExchange
- Returns:
- the
OAuth2AuthorizationRequest
ornull
if not available
-
saveAuthorizationRequest
public reactor.core.publisher.Mono<Void> saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerAuthorizationRequestRepository
Persists theOAuth2AuthorizationRequest
associating it to the providedHttpServletRequest
and/orHttpServletResponse
.- Specified by:
saveAuthorizationRequest
in interfaceServerAuthorizationRequestRepository<OAuth2AuthorizationRequest>
- Parameters:
authorizationRequest
- theOAuth2AuthorizationRequest
exchange
- theServerWebExchange
-
removeAuthorizationRequest
public reactor.core.publisher.Mono<OAuth2AuthorizationRequest> removeAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange) Description copied from interface:ServerAuthorizationRequestRepository
Removes and returns theOAuth2AuthorizationRequest
associated to the providedHttpServletRequest
or if not available returnsnull
.- Specified by:
removeAuthorizationRequest
in interfaceServerAuthorizationRequestRepository<OAuth2AuthorizationRequest>
- Parameters:
exchange
- theServerWebExchange
- Returns:
- the removed
OAuth2AuthorizationRequest
ornull
if not available
-