Class OAuth2PushedAuthorizationRequestEndpointConfigurer
java.lang.Object
org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2PushedAuthorizationRequestEndpointConfigurer
Configurer for the OAuth 2.0 Pushed Authorization Request Endpoint.
- Since:
- 7.0
- See Also:
-
OAuth2AuthorizationServerConfigurer.pushedAuthorizationRequestEndpoint(org.springframework.security.config.Customizer<org.springframework.security.config.annotation.web.configurers.oauth2.server.authorization.OAuth2PushedAuthorizationRequestEndpointConfigurer>)OAuth2PushedAuthorizationRequestEndpointFilter
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOAuth2PushedAuthorizationRequestAuthenticationToken.authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthorizationCodeRequestAuthenticationExceptionand returning theError Response.protected final ObjectPostProcessor<Object>protected final <T> TpostProcess(T object) pushedAuthorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter pushedAuthorizationRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Pushed Authorization Request fromHttpServletRequestto an instance ofOAuth2PushedAuthorizationRequestAuthenticationTokenused for authenticating the request.pushedAuthorizationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> pushedAuthorizationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.pushedAuthorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler pushedAuthorizationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2PushedAuthorizationRequestAuthenticationTokenand returning the Pushed Authorization Response.
-
Method Details
-
pushedAuthorizationRequestConverter
public OAuth2PushedAuthorizationRequestEndpointConfigurer pushedAuthorizationRequestConverter(org.springframework.security.web.authentication.AuthenticationConverter pushedAuthorizationRequestConverter) Adds anAuthenticationConverterused when attempting to extract a Pushed Authorization Request fromHttpServletRequestto an instance ofOAuth2PushedAuthorizationRequestAuthenticationTokenused for authenticating the request.- Parameters:
pushedAuthorizationRequestConverter- anAuthenticationConverterused when attempting to extract a Pushed Authorization Request fromHttpServletRequest- Returns:
- the
OAuth2PushedAuthorizationRequestEndpointConfigurerfor further configuration
-
pushedAuthorizationRequestConverters
public OAuth2PushedAuthorizationRequestEndpointConfigurer pushedAuthorizationRequestConverters(Consumer<List<org.springframework.security.web.authentication.AuthenticationConverter>> pushedAuthorizationRequestConvertersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's allowing the ability to add, remove, or customize a specificAuthenticationConverter.- Parameters:
pushedAuthorizationRequestConvertersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationConverter's- Returns:
- the
OAuth2PushedAuthorizationRequestEndpointConfigurerfor further configuration
-
authenticationProvider
public OAuth2PushedAuthorizationRequestEndpointConfigurer authenticationProvider(org.springframework.security.authentication.AuthenticationProvider authenticationProvider) Adds anAuthenticationProviderused for authenticating anOAuth2PushedAuthorizationRequestAuthenticationToken.- Parameters:
authenticationProvider- anAuthenticationProviderused for authenticating anOAuth2PushedAuthorizationRequestAuthenticationToken- Returns:
- the
OAuth2PushedAuthorizationRequestEndpointConfigurerfor further configuration
-
authenticationProviders
public OAuth2PushedAuthorizationRequestEndpointConfigurer authenticationProviders(Consumer<List<org.springframework.security.authentication.AuthenticationProvider>> authenticationProvidersConsumer) Sets theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's allowing the ability to add, remove, or customize a specificAuthenticationProvider.- Parameters:
authenticationProvidersConsumer- theConsumerproviding access to theListof default and (optionally) addedAuthenticationProvider's- Returns:
- the
OAuth2PushedAuthorizationRequestEndpointConfigurerfor further configuration
-
pushedAuthorizationResponseHandler
public OAuth2PushedAuthorizationRequestEndpointConfigurer pushedAuthorizationResponseHandler(org.springframework.security.web.authentication.AuthenticationSuccessHandler pushedAuthorizationResponseHandler) Sets theAuthenticationSuccessHandlerused for handling anOAuth2PushedAuthorizationRequestAuthenticationTokenand returning the Pushed Authorization Response.- Parameters:
pushedAuthorizationResponseHandler- theAuthenticationSuccessHandlerused for handling anOAuth2PushedAuthorizationRequestAuthenticationToken- Returns:
- the
OAuth2PushedAuthorizationRequestEndpointConfigurerfor further configuration
-
errorResponseHandler
public OAuth2PushedAuthorizationRequestEndpointConfigurer errorResponseHandler(org.springframework.security.web.authentication.AuthenticationFailureHandler errorResponseHandler) Sets theAuthenticationFailureHandlerused for handling anOAuth2AuthorizationCodeRequestAuthenticationExceptionand returning theError Response.- Parameters:
errorResponseHandler- theAuthenticationFailureHandlerused for handling anOAuth2AuthorizationCodeRequestAuthenticationException- Returns:
- the
OAuth2PushedAuthorizationRequestEndpointConfigurerfor further configuration
-
postProcess
protected final <T> T postProcess(T object) -
getObjectPostProcessor
-