Class DefaultOAuth2TokenRequestParametersConverter<T extends AbstractOAuth2AuthorizationGrantRequest>
java.lang.Object
org.springframework.security.oauth2.client.endpoint.DefaultOAuth2TokenRequestParametersConverter<T>
- Type Parameters:
T- type of grant request
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<T,org.springframework.util.MultiValueMap<String, String>>
public final class DefaultOAuth2TokenRequestParametersConverter<T extends AbstractOAuth2AuthorizationGrantRequest>
extends Object
implements org.springframework.core.convert.converter.Converter<T,org.springframework.util.MultiValueMap<String,String>>
Default
Converter used to convert an
AbstractOAuth2AuthorizationGrantRequest to the default parameters of an OAuth 2.0 Access Token Request.
This implementation provides grant-type specific parameters for the following grant types:
authorization_coderefresh_tokenclient_credentialspasswordurn:ietf:params:oauth:grant-type:jwt-bearerurn:ietf:params:oauth:grant-type:token-exchange
grant_type- always providedclient_id- provided unless theclientAuthenticationMethodisclient_secret_basicclient_secret- provided when theclientAuthenticationMethodisclient_secret_post
-
Constructor Details
-
DefaultOAuth2TokenRequestParametersConverter
public DefaultOAuth2TokenRequestParametersConverter()
-
-
Method Details
-
convert
- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<T extends AbstractOAuth2AuthorizationGrantRequest,org.springframework.util.MultiValueMap<String, String>>
-