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
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:
Accept a scope parameter;
Register the view as a resource; and
Enforce a check when the user has arrived via an access token.