Interface ServerAuthorizationRequestRepository<T extends org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
-
- Type Parameters:
T- The type of OAuth 2.0 Authorization Request
- All Known Implementing Classes:
WebSessionOAuth2ServerAuthorizationRequestRepository
public interface ServerAuthorizationRequestRepository<T extends org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>Implementations of this interface are responsible for the persistence ofOAuth2AuthorizationRequestbetween requests.Used by the
OAuth2AuthorizationRequestRedirectFilterfor persisting the Authorization Request before it initiates the authorization code grant flow. As well, used by theOAuth2LoginAuthenticationFilterfor resolving the associated Authorization Request when handling the callback of the Authorization Response.- Since:
- 5.1
- See Also:
OAuth2AuthorizationRequest,HttpSessionOAuth2AuthorizationRequestRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<T>loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)Returns theOAuth2AuthorizationRequestassociated to the providedHttpServletRequestornullif not available.reactor.core.publisher.Mono<T>removeAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)Removes and returns theOAuth2AuthorizationRequestassociated to the providedHttpServletRequestor if not available returnsnull.reactor.core.publisher.Mono<java.lang.Void>saveAuthorizationRequest(T authorizationRequest, org.springframework.web.server.ServerWebExchange exchange)Persists theOAuth2AuthorizationRequestassociating it to the providedHttpServletRequestand/orHttpServletResponse.
-
-
-
Method Detail
-
loadAuthorizationRequest
reactor.core.publisher.Mono<T> loadAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
Returns theOAuth2AuthorizationRequestassociated to the providedHttpServletRequestornullif not available.- Parameters:
exchange- theServerWebExchange- Returns:
- the
OAuth2AuthorizationRequestornullif not available
-
saveAuthorizationRequest
reactor.core.publisher.Mono<java.lang.Void> saveAuthorizationRequest(T authorizationRequest, org.springframework.web.server.ServerWebExchange exchange)
Persists theOAuth2AuthorizationRequestassociating it to the providedHttpServletRequestand/orHttpServletResponse.- Parameters:
authorizationRequest- theOAuth2AuthorizationRequestexchange- theServerWebExchange
-
removeAuthorizationRequest
reactor.core.publisher.Mono<T> removeAuthorizationRequest(org.springframework.web.server.ServerWebExchange exchange)
Removes and returns theOAuth2AuthorizationRequestassociated to the providedHttpServletRequestor if not available returnsnull.- Parameters:
exchange- theServerWebExchange- Returns:
- the removed
OAuth2AuthorizationRequestornullif not available
-
-