T - The type of OAuth 2.0 Authorization Requestpublic interface ServerAuthorizationRequestRepository<T extends org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
OAuth2AuthorizationRequest between requests.
Used by the OAuth2AuthorizationRequestRedirectFilter for persisting the Authorization Request
before it initiates the authorization code grant flow.
As well, used by the OAuth2LoginAuthenticationFilter for resolving
the associated Authorization Request when handling the callback of the Authorization Response.
OAuth2AuthorizationRequest,
HttpSessionOAuth2AuthorizationRequestRepository| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<T> |
loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
Returns the
OAuth2AuthorizationRequest associated to the provided HttpServletRequest
or null if not available. |
reactor.core.publisher.Mono<T> |
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(T authorizationRequest,
org.springframework.web.server.ServerWebExchange exchange)
Persists the
OAuth2AuthorizationRequest associating it to
the provided HttpServletRequest and/or HttpServletResponse. |
reactor.core.publisher.Mono<T> loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
OAuth2AuthorizationRequest associated to the provided HttpServletRequest
or null if not available.exchange - the ServerWebExchangeOAuth2AuthorizationRequest or null if not availablereactor.core.publisher.Mono<java.lang.Void> saveAuthorizationRequest(T authorizationRequest, org.springframework.web.server.ServerWebExchange exchange)
OAuth2AuthorizationRequest associating it to
the provided HttpServletRequest and/or HttpServletResponse.authorizationRequest - the OAuth2AuthorizationRequestexchange - the ServerWebExchangereactor.core.publisher.Mono<T> removeAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
OAuth2AuthorizationRequest associated to the
provided HttpServletRequest or if not available returns null.exchange - the ServerWebExchangeOAuth2AuthorizationRequest or null if not available