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_code
  • refresh_token
  • client_credentials
  • password
  • urn:ietf:params:oauth:grant-type:jwt-bearer
  • urn:ietf:params:oauth:grant-type:token-exchange
In addition, the following default parameters are provided:
  • grant_type - always provided
  • client_id - provided unless the clientAuthenticationMethod is client_secret_basic
  • client_secret - provided when the clientAuthenticationMethod is client_secret_post
Since:
6.4
See Also:
  • Constructor Details

    • DefaultOAuth2TokenRequestParametersConverter

      public DefaultOAuth2TokenRequestParametersConverter()
  • Method Details