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

Passing clientSecret when initializing OAuth2 to be more compatible with RFC #2

Merged
merged 1 commit into from
May 28, 2016

Conversation

jnorberg
Copy link
Contributor

Oauth2 RFC Section 2.3 (if the authorization server requires authentication, pass clientId and clientSecret in basic auth or in body)

…ith Oauth2 RFC Section 2.3 (if the authorization server requires authentication, pass clientId and clientSecret in basic auth or in body)
@leftmostcat
Copy link
Owner

Looks simple enough. Could you provide some error checking and/or case handling for the appropriate behavior when the user doesn't send in a client secret? (I haven't looked at the RFC to know which is appropriate here.)

@alexnj
Copy link

alexnj commented May 23, 2016

This is required to authenticate confidential clients per RFC 6749. Looks good to me to merge as it is, since not passing the parameter would result in the situation we're in right now. Anything else required to have this merged?

I'm right now relying on jnorberg's fork directly. Would love to get back to your NPM. Thanks so much!

@leftmostcat leftmostcat merged commit b461e43 into leftmostcat:master May 28, 2016
@leftmostcat
Copy link
Owner

I tested the querystring behavio with undefined (as opposed to '') and I'm satisfied that the behavior will be the same. Merged, and I'll tag shortly.

@alexnj
Copy link

alexnj commented Oct 10, 2016

I see that the package is tagged and published, but code is still reflecting older version. Raised #5. Thanks!

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