-
Notifications
You must be signed in to change notification settings - Fork 816
Description
According to documentation on skipping the authorization form, auto can be used to skip the authorization form if an application has already been authorized with the same scope.
However as it's currently implemented, this only seems to work as long as an access token exists that is valid (default expiration: 10 hours) and has matching scope. But it doesn't check for a valid refresh token.
If a valid refresh token exists (and its corresponding access token has matching scopes), it seems the app has equivalent evidence of valid authorization from that user? And so one could (should?) safely skip the authorization form? Unless I'm missing something, this would seem to match the anticipated behavior as described in documentation.
If that all sounds correct, I think a change to oauth2_provider/views/base.py can make this happen, and I'll open a related PR. :)