You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Doorkeeper with refresh tokens enabled, the returned grant flows from calculate_grant_flows does not list refresh_token despite this being a valid grant flow. The deprecated calculate_token_grant_types method did add refresh_token to the list of configured grant flows.
Without this, code for getting the full list of grant flows supported, such that you can support RFC 8414, is required to be:
I guess arguably we should add refresh_token into that, however, perhaps the use_refresh_tokens should warn or error if the refresh token grant flow isn't enabled?
I have just found token_grant_flows which does do the same logic as above, but if you have grant_flows containing refresh_token then the refresh token flow is listed twice (not sure if this would cause problems), but it should probably be made unique
Steps to reproduce
When using Doorkeeper with refresh tokens enabled, the returned grant flows from
calculate_grant_flows
does not listrefresh_token
despite this being a valid grant flow. The deprecatedcalculate_token_grant_types
method did addrefresh_token
to the list of configured grant flows.Without this, code for getting the full list of grant flows supported, such that you can support RFC 8414, is required to be:
Expected behavior
Doorkeeper should expose all configured grant flows via a method, including the
refresh_token
grant flowActual behavior
Doorkeeper does not expose the
refresh_token
grant flow if refresh tokens are enabled.System configuration
Doorkeeper initializer:
Ruby version:
3.3.5
Gemfile.lock: n/a - Doorkeeper @ 5.7.1
The text was updated successfully, but these errors were encountered: