FusionAuth / fusionauth-issues

FusionAuth issue submission project
https://fusionauth.io
90 stars 12 forks source link

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

Open mooreds opened 1 month ago

mooreds commented 1 month ago

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

robotdan commented 1 week ago

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