-
Notifications
You must be signed in to change notification settings - Fork 1
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
401 and 403 status errors? #1
Comments
I do welcome a PR and I think the reason they're all 400s was probably just simplification. However, I do want to make sure we're following the Oauth 2.0 specification. And so it looks to me the only one we'd want to change in the current libary (i.e. RFC 6749 basis):
It looks like there's some caveats around sending 401, so perhaps this lib needs to be adjusted to allowing users to simply pass in the status code. And perhaps we should add the extensions errors from RFC6750:
What are your thoughts? Hope all is well. Best, |
@ralucas - excellent, thanks! (I'll adjust PR #2 to reflect that.) So, agreed that all the errors listed in RFC6749 will be 400 except for In addition, I would argue that:
|
(Re the |
Hi Richard,
Fabulous library! The only thing that gives me pause is - why hardcode the http status code at 400 for all the errors? Some of them are traditionally 401 (
invalid_token
,invalid_client_secret
etc) and 403.Would you be open to a PR that adjusts that?
The text was updated successfully, but these errors were encountered: