public final class OAuth2AuthorizationEndpointConfigurer
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
OAuth2AuthorizationEndpointConfigurer |
authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
Adds an
AuthenticationProvider used for authenticating an OAuth2AuthorizationCodeRequestAuthenticationToken. |
OAuth2AuthorizationEndpointConfigurer |
authorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter authorizationRequestConverter)
Sets the
AuthenticationConverter used when attempting to extract an Authorization Request (or Consent) from HttpServletRequest
to an instance of OAuth2AuthorizationCodeRequestAuthenticationToken used for authenticating the request. |
OAuth2AuthorizationEndpointConfigurer |
authorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authorizationResponseHandler)
Sets the
AuthenticationSuccessHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationToken
and returning the Authorization Response. |
OAuth2AuthorizationEndpointConfigurer |
consentPage(java.lang.String consentPage)
Specify the URI to redirect Resource Owners to if consent is required during
the
authorization_code flow. |
OAuth2AuthorizationEndpointConfigurer |
errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
Sets the
AuthenticationFailureHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationException
and returning the Error Response. |
protected org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> |
getObjectPostProcessor() |
protected <T> T |
postProcess(T object) |
public OAuth2AuthorizationEndpointConfigurer authorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter authorizationRequestConverter)
AuthenticationConverter used when attempting to extract an Authorization Request (or Consent) from HttpServletRequest
to an instance of OAuth2AuthorizationCodeRequestAuthenticationToken used for authenticating the request.authorizationRequestConverter - the AuthenticationConverter used when attempting to extract an Authorization Request (or Consent) from HttpServletRequestOAuth2AuthorizationEndpointConfigurer for further configurationpublic OAuth2AuthorizationEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider)
AuthenticationProvider used for authenticating an OAuth2AuthorizationCodeRequestAuthenticationToken.authenticationProvider - an AuthenticationProvider used for authenticating an OAuth2AuthorizationCodeRequestAuthenticationTokenOAuth2AuthorizationEndpointConfigurer for further configurationpublic OAuth2AuthorizationEndpointConfigurer authorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler authorizationResponseHandler)
AuthenticationSuccessHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationToken
and returning the Authorization Response.authorizationResponseHandler - the AuthenticationSuccessHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationTokenOAuth2AuthorizationEndpointConfigurer for further configurationpublic OAuth2AuthorizationEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler)
AuthenticationFailureHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationException
and returning the Error Response.errorResponseHandler - the AuthenticationFailureHandler used for handling an OAuth2AuthorizationCodeRequestAuthenticationExceptionOAuth2AuthorizationEndpointConfigurer for further configurationpublic OAuth2AuthorizationEndpointConfigurer consentPage(java.lang.String consentPage)
authorization_code flow. A default consent page will be generated when
this attribute is not specified.
If a URI is specified, applications are required to process the specified URI to generate
a consent page. The query string will contain the following parameters:
client_id - the client identifierscope - a space-delimited list of scopes present in the authorization requeststate - a CSRF protection tokenProviderSettings.getAuthorizationEndpoint() ()}client_id as an HTTP parameterstate as an HTTP parameterscopes the Resource Owner
consented to as an HTTP parameterconsentPage - the URI of the custom consent page to redirect to if consent is required (e.g. "/oauth2/consent")OAuth2AuthorizationEndpointConfigurer for further configurationprotected final <T> T postProcess(T object)
protected final org.springframework.security.config.annotation.ObjectPostProcessor<java.lang.Object> getObjectPostProcessor()