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 https://stackexchange.com/oauth/access_token to the list of brokenAuthHeaderProviders #268

Closed
aweisser opened this issue Jan 28, 2018 · 1 comment

Comments

@aweisser
Copy link

The auth provider stackexchange.com does not seem to implement the OAuth2 spec fully.
When I try to authenticate the internal Post request returns an error:

Error: oAuth exchanged failed: oauth2: cannot fetch token: 400 Bad Request
Response: {"errors":[{"message":"No client_id specified.","code":6014}]}

When I add https://stackexchange.com/oauth/access_token` to the list of brokenAuthHeaderProviders in package golang.org/x/oauth2/internal everything works fine.

@FenwickElliott
Copy link
Contributor

If you'd just like someone to add that url to the string slice on golang.org/x/oauth2/internal/token.go and submit the commit I'd be more than happy to.

Let me know,

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

No branches or pull requests

2 participants