Skip to content

OAuth scopes error handler #24

Description

@annalesniak

missing-scopes error handler seems not to be fully compatible with The OAuth 2.0 standard.

The information about insufficient scope should be passed in WWW-Authenticate response header with auth-scheme name followed by scope, error and error_description properties (as stated here: https://tools.ietf.org/html/rfc6750#section-3 and the following sections of the standard).

Added label enhancement as it should lead to removal of the message from the response body and as a result breaking change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions