public class OAuth2AuthorizationEndpointFilter
extends OncePerRequestFilter
Filter
for the OAuth 2.0 Authorization Code Grant, which handles the processing of the OAuth 2.0 Authorization Request.Modifier and Type | Field and Description |
---|---|
static String | DEFAULT_AUTHORIZATION_ENDPOINT_URI The default endpoint URI for authorization requests. |
Constructor and Description |
---|
OAuth2AuthorizationEndpointFilter(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService) Constructs an OAuth2AuthorizationEndpointFilter using the provided parameters. |
OAuth2AuthorizationEndpointFilter(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService, String authorizationEndpointUri) Constructs an OAuth2AuthorizationEndpointFilter using the provided parameters. |
Modifier and Type | Method and Description |
---|---|
protected void | doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) |
public static final String DEFAULT_AUTHORIZATION_ENDPOINT_URI
URI
for authorization requests.public OAuth2AuthorizationEndpointFilter(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService)
OAuth2AuthorizationEndpointFilter
using the provided parameters.registeredClientRepository
- the repository of registered clientsauthorizationService
- the authorization servicepublic OAuth2AuthorizationEndpointFilter(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService, String authorizationEndpointUri)
OAuth2AuthorizationEndpointFilter
using the provided parameters.registeredClientRepository
- the repository of registered clientsauthorizationService
- the authorization serviceauthorizationEndpointUri
- the endpoint URI
for authorization requestsprotected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
ServletException
IOException