Class ServerHttpSecurity.OAuth2ClientSpec

  • Enclosing class:
    ServerHttpSecurity

    public final class ServerHttpSecurity.OAuth2ClientSpec
    extends java.lang.Object
    • Method Detail

      • authenticationConverter

        public ServerHttpSecurity.OAuth2ClientSpec authenticationConverter​(org.springframework.security.web.server.authentication.ServerAuthenticationConverter authenticationConverter)
        Sets the converter to use
        Parameters:
        authenticationConverter - the converter to use
        Returns:
        the ServerHttpSecurity.OAuth2ClientSpec to customize
      • authenticationManager

        public ServerHttpSecurity.OAuth2ClientSpec authenticationManager​(org.springframework.security.authentication.ReactiveAuthenticationManager authenticationManager)
        Configures the ReactiveAuthenticationManager to use. The default is OAuth2AuthorizationCodeReactiveAuthenticationManager
        Parameters:
        authenticationManager - the manager to use
        Returns:
        the ServerHttpSecurity.OAuth2ClientSpec to customize
      • clientRegistrationRepository

        public ServerHttpSecurity.OAuth2ClientSpec clientRegistrationRepository​(org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository clientRegistrationRepository)
        Configures the ReactiveClientRegistrationRepository. Default is to look the value up as a Bean.
        Parameters:
        clientRegistrationRepository - the repository to use
        Returns:
        the ServerHttpSecurity.OAuth2ClientSpec to customize
      • authorizedClientRepository

        public ServerHttpSecurity.OAuth2ClientSpec authorizedClientRepository​(org.springframework.security.oauth2.client.web.server.ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
        Configures the ReactiveClientRegistrationRepository. Default is to look the value up as a Bean.
        Parameters:
        authorizedClientRepository - the repository to use
        Returns:
        the ServerHttpSecurity.OAuth2ClientSpec to customize
      • authorizationRequestRepository

        public ServerHttpSecurity.OAuth2ClientSpec authorizationRequestRepository​(org.springframework.security.oauth2.client.web.server.ServerAuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
        Sets the repository to use for storing OAuth2AuthorizationRequest's.
        Parameters:
        authorizationRequestRepository - the repository to use for storing OAuth2AuthorizationRequest's
        Returns:
        the ServerHttpSecurity.OAuth2ClientSpec to customize
        Since:
        5.2