Class OAuth2AuthorizationRequestCustomizers
java.lang.Object
org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestCustomizers
A factory of customizers that customize the
OAuth 2.0
Authorization Request via the OAuth2AuthorizationRequest.Builder.- Since:
- 5.7
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
withPkce
public static 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:
-