Skip to content

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

Open
smoreau wants to merge 6 commits into
oauthjs:masterfrom
smoreau:master
Open

Add option to send client credentials (client_id and client_secret) in the header#122
smoreau wants to merge 6 commits into
oauthjs:masterfrom
smoreau:master

Conversation

@smoreau

@smoreau smoreau commented Aug 2, 2017

Copy link
Copy Markdown

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".

@pierrederuel pierrederuel left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pass the requirements

@ruipenso ruipenso left a comment

Copy link
Copy Markdown
Member

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

smoreau commented Dec 9, 2017

Copy link
Copy Markdown
Author

It should be fine now.
Please confirm.

@smoreau

smoreau commented Mar 28, 2018

Copy link
Copy Markdown
Author

Any news about this pull request?

@smoreau smoreau closed this Mar 28, 2018
@smoreau smoreau reopened this Mar 28, 2018
@smoreau

smoreau commented Mar 28, 2018

Copy link
Copy Markdown
Author

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