Skip to content

Skip auth form if valid refresh token exists? #753

@madprime

Description

@madprime

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. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions