Class OAuth2LoginConfigurer.AuthorizationEndpointConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig
-
- Enclosing class:
- OAuth2LoginConfigurer<B extends HttpSecurityBuilder<B>>
public final class OAuth2LoginConfigurer.AuthorizationEndpointConfig extends java.lang.ObjectConfiguration options for the Authorization Server's Authorization Endpoint.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuth2LoginConfigurer<B>and()Returns theOAuth2LoginConfigurerfor further configuration.OAuth2LoginConfigurer.AuthorizationEndpointConfigauthorizationRedirectStrategy(org.springframework.security.web.RedirectStrategy authorizationRedirectStrategy)Sets the redirect strategy for Authorization Endpoint redirect URI.OAuth2LoginConfigurer.AuthorizationEndpointConfigauthorizationRequestRepository(org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)Sets the repository used for storingOAuth2AuthorizationRequest's.OAuth2LoginConfigurer.AuthorizationEndpointConfigauthorizationRequestResolver(org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver authorizationRequestResolver)Sets the resolver used for resolvingOAuth2AuthorizationRequest's.OAuth2LoginConfigurer.AuthorizationEndpointConfigbaseUri(java.lang.String authorizationRequestBaseUri)Sets the baseURIused for authorization requests.
-
-
-
Method Detail
-
baseUri
public OAuth2LoginConfigurer.AuthorizationEndpointConfig baseUri(java.lang.String authorizationRequestBaseUri)
Sets the baseURIused for authorization requests.- Parameters:
authorizationRequestBaseUri- the baseURIused for authorization requests- Returns:
- the
OAuth2LoginConfigurer.AuthorizationEndpointConfigfor further configuration
-
authorizationRequestResolver
public OAuth2LoginConfigurer.AuthorizationEndpointConfig authorizationRequestResolver(org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver authorizationRequestResolver)
Sets the resolver used for resolvingOAuth2AuthorizationRequest's.- Parameters:
authorizationRequestResolver- the resolver used for resolvingOAuth2AuthorizationRequest's- Returns:
- the
OAuth2LoginConfigurer.AuthorizationEndpointConfigfor further configuration - Since:
- 5.1
-
authorizationRequestRepository
public OAuth2LoginConfigurer.AuthorizationEndpointConfig authorizationRequestRepository(org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository)
Sets the repository used for storingOAuth2AuthorizationRequest's.- Parameters:
authorizationRequestRepository- the repository used for storingOAuth2AuthorizationRequest's- Returns:
- the
OAuth2LoginConfigurer.AuthorizationEndpointConfigfor further configuration
-
authorizationRedirectStrategy
public OAuth2LoginConfigurer.AuthorizationEndpointConfig authorizationRedirectStrategy(org.springframework.security.web.RedirectStrategy authorizationRedirectStrategy)
Sets the redirect strategy for Authorization Endpoint redirect URI.- Parameters:
authorizationRedirectStrategy- the redirect strategy- Returns:
- the
OAuth2LoginConfigurer.AuthorizationEndpointConfigfor further configuration
-
and
public OAuth2LoginConfigurer<B> and()
Returns theOAuth2LoginConfigurerfor further configuration.- Returns:
- the
OAuth2LoginConfigurer
-
-