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 aConsumer
to be provided theOAuth2AuthorizationRequest.Builder
that adds thecode_challenge
and, usually,code_challenge_method
parameters to the OAuth 2.0 Authorization Request.
-
Method Details
-
withPkce
Returns aConsumer
to be provided theOAuth2AuthorizationRequest.Builder
that adds thecode_challenge
and, usually,code_challenge_method
parameters to the OAuth 2.0 Authorization Request. Thecode_verifier
is stored inOAuth2AuthorizationRequest.getAttribute(String)
under the keycode_verifier
for subsequent use in the OAuth 2.0 Access Token Request.- Returns:
- a
Consumer
to be provided theOAuth2AuthorizationRequest.Builder
that adds the PKCE parameters - See Also:
-