-
Notifications
You must be signed in to change notification settings - Fork 660
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
OAuth2. getOAuthAccessToken() should support HTTP Basic authentication scheme #300
Comments
I stumbled upon a similar thing with How about below var post_headers = {
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
}; -> PASTE -> if (params.hasOwnProperty('headers') && typeof params.headers === 'object') {
for (var key in params.headers) {
post_headers[key] = params.headers[key];
}
} Would work for twitter like
|
This is still not resolved? Is it because official OAuth2 specification not using |
Per RFC 6749 it should be possible to supply the Client ID and Client Secret using the HTTP Basic authentication scheme. As far as I can tell, the lib only supports sending the client credentials in the request-body.
This is actually not recommended per the RFC:
As an example, Reddit only supports getting the access token using Basic authentication
The text was updated successfully, but these errors were encountered: