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

Can't override/suppress Authentication and User-Agent headers #245

Closed
RobWilco opened this issue Jul 2, 2016 · 2 comments
Closed

Can't override/suppress Authentication and User-Agent headers #245

RobWilco opened this issue Jul 2, 2016 · 2 comments

Comments

@RobWilco
Copy link

RobWilco commented Jul 2, 2016

Using a grant type of password, the OAuth2 provider I'm calling doesn't like when the Authentication header (and possibly User-Agent header) is included. When I remove them, all is well. Not seeing a way to suppress them as of yet. Thoughts?

@Lukasa
Copy link
Member

Lukasa commented Jul 2, 2016

In the first instance I should note that your OAuth2 provider needs to be better. The OAuth2 spec requires that clients be able to do this.

Regardless, you can suppress those the Authorization field by setting auth=False.

@Lukasa Lukasa closed this as completed Jul 2, 2016
@Lukasa
Copy link
Member

Lukasa commented Jul 2, 2016

Note that, currently, you'll need to use the master branch for that.

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