requests-oauthlib icon indicating copy to clipboard operation
requests-oauthlib copied to clipboard

OAuthlib support for Python-Requests!

Results 127 requests-oauthlib issues
Sort by recently updated
recently updated
newest added

As a `client_credentials` based access token has no refresh token, the `refresh_token()` functionality raises an exception (ie. `InvalidRequestError: Missing refresh token parameter.`). Based on the spec, I believe this is...

Sample code ``` client = BackendApplicationClient(client_id=client_id) session = OAuth2Session(client=client) token = session.fetch_token( token_url=token_url, client_id=client_id, client_secret=client_secret ) ``` Would result in ``` DEBUG:requests_oauthlib.oauth2_session:Encoding `client_id` "f60dbafb-dc92-477c-98da-9a6f13ba91ec" with `client_secret` as Basic auth credentials....

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...

Hi all, Im using the requests_oauthlib package and importing OAuth1Session to gain access to a John Deere API but have been having some SSL Certificate issues. I have contacted the...

When I follow the [Google example](https://requests-oauthlib.readthedocs.io/en/latest/examples/google.html): ``` >>> google.fetch_token(token_url, client_secret=client_secret,authorization_response=redirect_response) Traceback (most recent call last): File "", line 1, in File "/Users/messa/code/gh/ow2/hub/venv/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 307, in fetch_token self._client.parse_request_body_response(r.text, scope=self.scope) File "/Users/messa/code/gh/ow2/hub/venv/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py",...

Remove client_id and client_secret from body (generated via prepare_request_body) if HTTPBasicAuth used. Usage: token = oauth.fetch_token( token_url='token_url_here', code='code_here', client_id='client_id_here', client_secret='client_secret_here' )

I'm not sure which project this belongs in a request on, but: urn:ietf:wg:oauth:2.0:oob is a special redirect URL that indicates to some providers (google in particular) that the token code...

``` from requests_oauthlib import OAuth2Session from requests_oauthlib.compliance_fixes import facebook_compliance_fix client_id = '2117634981801814' client_secret = '1f38cd50e4671b2c82d0c827912d2cad' authorization_base_url = 'https://www.facebook.com/dialog/oauth' token_url = 'https://graph.facebook.com/oauth/access_token' redirect_uri = 'http://localhost:5000/' # Should match Site URL facebook...

The acronym `uri` is used all over the place in code and documentation, where it should be `url`. Also `url` is used in a bunch of places too, where it...

Looks like some breaking changes happen between 1.1.0 and 1.2.0 because now an [example](https://requests-oauthlib.readthedocs.io/en/latest/oauth2_workflow.html#backend-application-flow) from the docs is not working. It crashes with `InvalidClientError` error. ``` from oauthlib.oauth2 import BackendApplicationClient...