Pass Basic Authorization header to OAuth2 access token request#316
Pass Basic Authorization header to OAuth2 access token request#316lexi-lambda wants to merge 1 commit intociaranj:masterfrom
Conversation
|
Hello, |
|
+1 For this PR. I'm using a custom header to indicate my API version for the endpoint, and my only option right now is to fork the entire repo. Custom headers should be a must. |
|
+1 for this PR. This is the default authentication mode in the RFC, some servers only support this. |
|
Why hasn't this been merged? According to the OAuth 2.0 RFC, servers are only required to support HTTP Basic authentication with the |
|
Do we have to fork? |
|
What's the status on this?? |
|
@jdesboeufs @jordanbtucker // just add your 'Authorization' header here to get the functionality - doesn't make it super smooth and easy, but it works
exports.OAuth2 = function (clientId, clientSecret, baseSite, authorizePath, accessTokenPath, customHeaders) {
...
}
Of course, it doesn't really solve the provider's use case, which is keeping your |
|
@corbfon The last commit to this repository is over two years old. I think it’s time to admit that this project is unmaintained, and this is never getting merged. Use or create a fork if you have to. |
|
@lexi-lambda ah... good point. Sucks that this is a dependency of a library as large as |
|
Sad... |
|
@corbfon agreed. I guess at the very least it would be helpful if the previous maintainer of this project would mark it as unmaintained. This would at least flag others from using it in their projects or to migrate away from it if already in use. |
Fixes #143, #175, #205, and #300.