Skip to content

401 unauthorized instead of 403 forbidden while authenticated #462

@daankets

Description

@daankets

When an authenticated user is denied access because of an ACL, we receive the error 401 unauthorized. This is not in line with the http specification, that indicates 401 unauthorized is for indicating an authentication issue. 403 forbidden should be used for indicating an authorization issue.
It's also required so that - for example in an AngularJS interceptor - you can differentiate between the need to show an access denied/request access page, instead of showing a login dialog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions