Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth scopes error handler #24

Open
annalesniak opened this issue May 29, 2019 · 0 comments
Open

OAuth scopes error handler #24

annalesniak opened this issue May 29, 2019 · 0 comments
Labels
enhancement New feature or request next-major

Comments

@annalesniak
Copy link
Contributor

annalesniak commented May 29, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next-major
Projects
None yet
Development

No branches or pull requests

2 participants