fusionauth-issues icon indicating copy to clipboard operation
fusionauth-issues copied to clipboard

[Bug]: Device Grant type not listed in acceptable grant types when posting to the /oauth2/token endpoint

Open mooreds opened this issue 1 year ago • 1 comments

What happened?

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.'}

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

mooreds avatar Aug 07 '24 16:08 mooreds

This may also affect the .well-known/openid-configuration endpoint we should review it as well to be sure they are all correct.

robotdan avatar Sep 12 '24 00:09 robotdan