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.and()
Returns theOAuth2ClientConfigurer
for further configuration.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>>.AuthorizationCodeGrantConfigurer
for 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>>.AuthorizationCodeGrantConfigurer
for 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>>.AuthorizationCodeGrantConfigurer
for further configuration
-
and
Returns theOAuth2ClientConfigurer
for further configuration.- Returns:
- the
OAuth2ClientConfigurer
-