Class OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
java.lang.Object
org.springframework.security.config.annotation.web.configurers.oauth2.client.OAuth2ClientConfigurer.AuthorizationCodeGrantConfigurer
- Enclosing class:
- OAuth2ClientConfigurer<B extends HttpSecurityBuilder<B>>
Configuration options for the OAuth 2.0 Authorization Code Grant.
-
Method Summary
Modifier and TypeMethodDescriptionaccessTokenResponseClient(OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient) Sets the client used for requesting the access token credential from the Token Endpoint.authorizationRedirectStrategy(RedirectStrategy authorizationRedirectStrategy) Sets the redirect strategy for Authorization Endpoint redirect URI.authorizationRequestRepository(AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository) Sets the repository used for storingOAuth2AuthorizationRequest's.authorizationRequestResolver(OAuth2AuthorizationRequestResolver authorizationRequestResolver) Sets the resolver used for resolvingOAuth2AuthorizationRequest's.
-
Method Details
-
authorizationRequestResolver
public OAuth2ClientConfigurer<B>.AuthorizationCodeGrantConfigurer authorizationRequestResolver(OAuth2AuthorizationRequestResolver authorizationRequestResolver) Sets the resolver used for resolvingOAuth2AuthorizationRequest's.- Parameters:
authorizationRequestResolver- the resolver used for resolvingOAuth2AuthorizationRequest's- Returns:
- the
OAuth2ClientConfigurer<B extends HttpSecurityBuilder<B>>.AuthorizationCodeGrantConfigurerfor further configuration
-
authorizationRequestRepository
public OAuth2ClientConfigurer<B>.AuthorizationCodeGrantConfigurer authorizationRequestRepository(AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository) Sets the repository used for storingOAuth2AuthorizationRequest's.- Parameters:
authorizationRequestRepository- the repository used for storingOAuth2AuthorizationRequest's- Returns:
- the
OAuth2ClientConfigurer<B extends HttpSecurityBuilder<B>>.AuthorizationCodeGrantConfigurerfor further configuration
-
authorizationRedirectStrategy
public OAuth2ClientConfigurer<B>.AuthorizationCodeGrantConfigurer authorizationRedirectStrategy(RedirectStrategy authorizationRedirectStrategy) Sets the redirect strategy for Authorization Endpoint redirect URI.- Parameters:
authorizationRedirectStrategy- the redirect strategy- Returns:
- the
OAuth2ClientConfigurer<B extends HttpSecurityBuilder<B>>.AuthorizationCodeGrantConfigurerfor further configuration
-
accessTokenResponseClient
public OAuth2ClientConfigurer<B>.AuthorizationCodeGrantConfigurer accessTokenResponseClient(OAuth2AccessTokenResponseClient<OAuth2AuthorizationCodeGrantRequest> accessTokenResponseClient) Sets the client used for requesting the access token credential from the Token Endpoint.- Parameters:
accessTokenResponseClient- the client used for requesting the access token credential from the Token Endpoint- Returns:
- the
OAuth2ClientConfigurer<B extends HttpSecurityBuilder<B>>.AuthorizationCodeGrantConfigurerfor further configuration
-