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.-
Method Summary
Modifier and TypeMethodDescriptionwithPkce()Returns aConsumerto be provided theOAuth2AuthorizationRequest.Builderthat adds thecode_challengeand, usually,code_challenge_methodparameters to the OAuth 2.0 Authorization Request.
-
Method Details
-
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:
-