Class ServerHttpSecurity.OAuth2ClientSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.OAuth2ClientSpec
-
- Enclosing class:
- ServerHttpSecurity
public class ServerHttpSecurity.OAuth2ClientSpec extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
authenticationConverter
public ServerHttpSecurity.OAuth2ClientSpec authenticationConverter(ServerAuthenticationConverter authenticationConverter)
Sets the converter to use- Parameters:
authenticationConverter
- the converter to use- Returns:
- the
ServerHttpSecurity.OAuth2ClientSpec
to customize
-
authenticationManager
public ServerHttpSecurity.OAuth2ClientSpec authenticationManager(ReactiveAuthenticationManager authenticationManager)
Configures theReactiveAuthenticationManager
to use. The default isOAuth2AuthorizationCodeReactiveAuthenticationManager
- Parameters:
authenticationManager
- the manager to use- Returns:
- the
ServerHttpSecurity.OAuth2ClientSpec
to customize
-
clientRegistrationRepository
public ServerHttpSecurity.OAuth2ClientSpec clientRegistrationRepository(ReactiveClientRegistrationRepository clientRegistrationRepository)
Configures theReactiveClientRegistrationRepository
. 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(ServerOAuth2AuthorizedClientRepository authorizedClientRepository)
Configures theReactiveClientRegistrationRepository
. 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(ServerAuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the repository to use for storingOAuth2AuthorizationRequest
's.- Parameters:
authorizationRequestRepository
- the repository to use for storingOAuth2AuthorizationRequest
's- Returns:
- the
ServerHttpSecurity.OAuth2ClientSpec
to customize - Since:
- 5.2
-
and
public ServerHttpSecurity and()
Allows method chaining to continue configuring theServerHttpSecurity
- Returns:
- the
ServerHttpSecurity
to continue configuring
-
configure
protected void configure(ServerHttpSecurity http)
-
-