public final class WebSessionOAuth2ReactiveAuthorizationRequestRepository extends java.lang.Object implements ReactiveAuthorizationRequestRepository<OAuth2AuthorizationRequest>
ReactiveAuthorizationRequestRepository
that stores
OAuth2AuthorizationRequest
in the WebSession
.AuthorizationRequestRepository
,
OAuth2AuthorizationRequest
Constructor and Description |
---|
WebSessionOAuth2ReactiveAuthorizationRequestRepository() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<OAuth2AuthorizationRequest> |
loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
Returns the
OAuth2AuthorizationRequest associated to the provided HttpServletRequest
or null if not available. |
reactor.core.publisher.Mono<OAuth2AuthorizationRequest> |
removeAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
Removes and returns the
OAuth2AuthorizationRequest associated to the
provided HttpServletRequest or if not available returns null . |
reactor.core.publisher.Mono<java.lang.Void> |
saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest,
org.springframework.web.server.ServerWebExchange exchange)
Persists the
OAuth2AuthorizationRequest associating it to
the provided HttpServletRequest and/or HttpServletResponse . |
public WebSessionOAuth2ReactiveAuthorizationRequestRepository()
public reactor.core.publisher.Mono<OAuth2AuthorizationRequest> loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
ReactiveAuthorizationRequestRepository
OAuth2AuthorizationRequest
associated to the provided HttpServletRequest
or null
if not available.loadAuthorizationRequest
in interface ReactiveAuthorizationRequestRepository<OAuth2AuthorizationRequest>
exchange
- the ServerWebExchange
OAuth2AuthorizationRequest
or null
if not availablepublic reactor.core.publisher.Mono<java.lang.Void> saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, org.springframework.web.server.ServerWebExchange exchange)
ReactiveAuthorizationRequestRepository
OAuth2AuthorizationRequest
associating it to
the provided HttpServletRequest
and/or HttpServletResponse
.saveAuthorizationRequest
in interface ReactiveAuthorizationRequestRepository<OAuth2AuthorizationRequest>
authorizationRequest
- the OAuth2AuthorizationRequest
exchange
- the ServerWebExchange
public reactor.core.publisher.Mono<OAuth2AuthorizationRequest> removeAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
ReactiveAuthorizationRequestRepository
OAuth2AuthorizationRequest
associated to the
provided HttpServletRequest
or if not available returns null
.removeAuthorizationRequest
in interface ReactiveAuthorizationRequestRepository<OAuth2AuthorizationRequest>
exchange
- the ServerWebExchange
OAuth2AuthorizationRequest
or null
if not available