Class OAuth2LoginConfigurer.AuthorizationEndpointConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2LoginConfigurer.AuthorizationEndpointConfig
- Enclosing class:
- OAuth2LoginConfigurer<B extends HttpSecurityBuilder<B>>
Configuration options for the Authorization Server's Authorization Endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionand()Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.authorizationRedirectStrategy(org.springframework.security.web.RedirectStrategy authorizationRedirectStrategy) Sets the redirect strategy for Authorization Endpoint redirect URI.authorizationRequestRepository(org.springframework.security.oauth2.client.web.AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest> authorizationRequestRepository) Sets the repository used for storingOAuth2AuthorizationRequest's.authorizationRequestResolver(org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestResolver authorizationRequestResolver) Sets the resolver used for resolvingOAuth2AuthorizationRequest's.Sets the baseURIused for authorization requests.
-
Method Details
-
baseUri
public OAuth2LoginConfigurer<B>.AuthorizationEndpointConfig baseUri(String authorizationRequestBaseUri) Sets the baseURIused for authorization requests.- Parameters:
authorizationRequestBaseUri- the baseURIused for authorization requests- Returns:
- the
OAuth2LoginConfigurer<B extends HttpSecurityBuilder<B>>.AuthorizationEndpointConfigfor further configuration
-
authorizationRequestResolver
public OAuth2LoginConfigurer<B>.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<B extends HttpSecurityBuilder<B>>.AuthorizationEndpointConfigfor further configuration - Since:
- 5.1
-
authorizationRequestRepository
public OAuth2LoginConfigurer<B>.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<B extends HttpSecurityBuilder<B>>.AuthorizationEndpointConfigfor further configuration
-
authorizationRedirectStrategy
public OAuth2LoginConfigurer<B>.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<B extends HttpSecurityBuilder<B>>.AuthorizationEndpointConfigfor further configuration
-
and
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseOAuth2LoginConfigurer.authorizationEndpoint(Customizer)insteadReturns theOAuth2LoginConfigurerfor further configuration.- Returns:
- the
OAuth2LoginConfigurer
-