Class OAuth2AuthorizationRequestCustomizers
- java.lang.Object
-
- org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestCustomizers
-
public final class OAuth2AuthorizationRequestCustomizers extends java.lang.ObjectA factory of customizers that customize theOAuth 2.0 Authorization Requestvia theOAuth2AuthorizationRequest.Builder.- Since:
- 5.7
- See Also:
OAuth2AuthorizationRequest.Builder,DefaultOAuth2AuthorizationRequestResolver.setAuthorizationRequestCustomizer(Consumer),DefaultServerOAuth2AuthorizationRequestResolver.setAuthorizationRequestCustomizer(Consumer)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.function.Consumer<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest.Builder>withPkce()Returns aConsumerto be provided theOAuth2AuthorizationRequest.Builderthat adds thecode_challengeand, usually,code_challenge_methodparameters to the OAuth 2.0 Authorization Request.
-
-
-
Method Detail
-
withPkce
public static java.util.function.Consumer<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest.Builder> withPkce()
Returns aConsumerto be provided theOAuth2AuthorizationRequest.Builderthat adds thecode_challengeand, usually,code_challenge_methodparameters to the OAuth 2.0 Authorization Request. Thecode_verifieris stored inOAuth2AuthorizationRequest.getAttribute(String)under the keycode_verifierfor subsequent use in the OAuth 2.0 Access Token Request.- Returns:
- a
Consumerto be provided theOAuth2AuthorizationRequest.Builderthat adds the PKCE parameters - See Also:
- 1.1. Protocol Flow, 4.1. Client Creates a Code Verifier, 4.2. Client Creates the Code Challenge
-
-