Skip to content

OAuth2Session.request() does not allow custom auth specific to refresh requests #557

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

Open
kiaradlf opened this issue Dec 13, 2024 · 0 comments

Comments

@kiaradlf
Copy link

OAuth2Session.request() now has the refresh request's authentication method reuse its regular auth parameter (not specific to refresh), falling back to HTTP Basic Auth only if the former is missing.

This becomes a problem for e.g. the CommerceTools API, which uses bearer authentication for regular requests, yet basic auth for its refresh process.

c.f. #264, which touches on some issues in this code snippet as well.

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

1 participant