Interface ServerOAuth2AuthorizationRequestResolver

All Known Implementing Classes:
DefaultServerOAuth2AuthorizationRequestResolver

public interface ServerOAuth2AuthorizationRequestResolver
Implementations of this interface are capable of resolving an OAuth2AuthorizationRequest from the provided ServerWebExchange. Used by the OAuth2AuthorizationRequestRedirectWebFilter for resolving Authorization Requests.
Since:
5.1
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
    resolve(org.springframework.web.server.ServerWebExchange exchange)
    Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
    reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
    resolve(org.springframework.web.server.ServerWebExchange exchange, String clientRegistrationId)
    Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
  • Method Details

    • resolve

      reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> resolve(org.springframework.web.server.ServerWebExchange exchange)
      Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
      Parameters:
      exchange - the ServerWebExchange
      Returns:
      the resolved OAuth2AuthorizationRequest or null if not available
    • resolve

      reactor.core.publisher.Mono<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> resolve(org.springframework.web.server.ServerWebExchange exchange, String clientRegistrationId)
      Returns the OAuth2AuthorizationRequest resolved from the provided HttpServletRequest or null if not available.
      Parameters:
      exchange - the ServerWebExchange
      clientRegistrationId - the client registration id
      Returns:
      the resolved OAuth2AuthorizationRequest or null if not available