When I was posting to the /oauth2/token endpoint I had an incorrect grant type, but saw this error:
{'error': 'unsupported_grant_type', 'error_description': 'The requested authorization grant type is not supported by the authorization server. Parameter grant_type must be set to authorization_code, password, refresh_token or client_credentials.'}
What happened?
When I was posting to the /oauth2/token endpoint I had an incorrect grant type, but saw this error:
This error message should be changed to include all valid grant types. Per https://github.com/FusionAuth/fusionauth-java-client/blob/main/src/main/java/io/fusionauth/domain/oauth2/GrantType.java#L33 I think the only one we need to add is the device grant type.
Version
1.51.2
Affects Versions
No response