Skip to content

Specify scope in requires_login decorator #18

@jace

Description

@jace

Flask-Lastuser's old resource decorator is clunky and has never been used in production. The before_request handler, however, has recently acquired the ability to parse an access token like a session cookie and load the linked user.

This mechanism should extend to requires_login and requires_permission, both of which should:

  1. Accept a scope parameter;
  2. Register the view as a resource; and
  3. Enforce a check when the user has arrived via an access token.

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