I want to allow a client to use a specific grant type, but cannot find the valid values to use in the client table in the documentation.
Any ideas?
Very good question - I struggled to find the values for hours.
Here is how to gather the different values. Every implementation of AbstractTokenGranter carries static field grant type GRANT_TYPE:
refresh_token - RefreshTokenGranterauthorization_code - AuthorizationCodeTokenGranterimplicit - ImplicitTokenGranterpassword - ResourceOwnerPasswordTokenGranterclient_credentials - ClientCredentialsTokenGranterThe authorized grant types of a client can be found in the client instance via ClientDetails.getAuthorizedGrantTypes
And last but not least spring security oauth follows the specification here - so the grant types mentioned above match those mentioned in the spec.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With