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

Add option to send client credentials (client_id and client_secret) in the header #122

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

smoreau
Copy link

@smoreau smoreau commented Aug 2, 2017

The RFC 6749 about OAuth 2.0 (https://tools.ietf.org/html/rfc6749#section-2.3.1) mentions the following:
"Including the client credentials in the request-body using the two
parameters is NOT RECOMMENDED and SHOULD be limited to clients unable
to directly utilize the HTTP Basic authentication scheme (or other
password-based HTTP authentication schemes). The parameters can only
be transmitted in the request-body and MUST NOT be included in the
request URI."

In order to be conform with this RFC, this pull request proposes to add an option "clientCredentials" which will send the client_id and client_secret in the Authorization header when the value is equal to "header".

Copy link

@pierrederuel pierrederuel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pass the requirements

Copy link
Member

@ruipenso ruipenso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You just included the dist files... Where is the actual source code?

And, please remove the dist files - it will be included on the release.

@smoreau
Copy link
Author

smoreau commented Dec 9, 2017

It should be fine now.
Please confirm.

@smoreau
Copy link
Author

smoreau commented Mar 28, 2018

Any news about this pull request?

@smoreau smoreau closed this Mar 28, 2018
@smoreau smoreau reopened this Mar 28, 2018
@smoreau
Copy link
Author

smoreau commented Mar 28, 2018

I fixed all the JSHint warnings. This pull request is ready for your review. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants