Skip to content

Failure to authenticate API endpoints should raise 403 instead of redirect #2428

Closed
@minrk

Description

@minrk

Tornado's @web.authenticated redirects to login_url on failed authentication, but this isn't appropriate for the REST API. We should be raising a simple 403 instead of redirecting.

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