-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Set WWW-Authenticate header for invalid requests #96
Conversation
release 4.1.1 -> master
Looks fine for me. I can not find that the header "MUST be" included like the original pull request claimed. Personally I do not see any harm in including this context. |
Please set target to development, not master |
please set target to development, not master |
Hi, done Regards |
Two things to mention here regarding RFC6750/section3:
This should be taken into consideration.
The example also shows, that the |
Hi, so, if I understand correctly what you mean and what the standard says:
I think that adding the description could be useful, but not so straightforward, since it should report the specific failure reason IMHO. So I propose:
Regards |
@FStefanni the optional description can remain optional that's fine to me but I wanted to ask you as the author of the PR if you are sure, that you don't send error information in case the request contains no authentication method or info. From what I see there is no check about this but maybe this happens already at some other place? |
Hi, to me, it seems fine: please see But a second check by someone else is welcome. Regards. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From my end this seems to be okay but I'd like to have a second check on the auth-checking issue (see prior discussion)
From my point this is resolved and approved. Can someone else second-check, please? |
@jorenvandeweyer sorry for being late this is now finally merged |
Summary
This adds the
WWW-Authenticate
header forInvalidRequestError
,InvalidTokenError
,and
InsufficientScopeError
, as specified in RFC 6750, Section 3The original pr is oauthjs/node-oauth2-server#646
Linked issue(s)
Fixes issue #89, point 18.
Added tests?
Yes
OAuth2 standard
RFC 6750, Section 3