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

Do not pass 'params' IE querystring parameters from original request when refreshing token. #390

Open
dadocsis opened this issue Dec 18, 2019 · 0 comments

Comments

@dadocsis
Copy link

Consider the following snippet using the automatic token refresh strategy:
https://requests-oauthlib.readthedocs.io/en/latest/oauth2_workflow.html#third-recommended-define-automatic-token-refresh-and-update

from requests_oauthlib import OAuth2Session
    client = OAuth2Session(client_id, token=token, auto_refresh_url=refresh_url,
                           auto_refresh_kwargs=extra, token_updater=token_saver)
    r = client.get(protected_url, params=qs)

The params=qs ends up getting sent in the body of the refresh_token POST.

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