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

See #463 for implementation example

These hooks are implemented right before the request is sent for the fetch token and similar for the refresh token request too. These hooks are required for me to apply...

## Walkthrough When [intercepting](https://github.com/requests/requests-oauthlib/blob/master/requests_oauthlib/oauth2_session.py#L467) a `request()`, `request-oauthlib` doesn't take payload data passed with `json` parameter into account. This leads to `kwargs` having `json` parameter value. Notice that the same kwargs...

Getting an error `oauthlib.oauth2.rfc6749.errors.MismatchingStateError: (mismatching_state) CSRF Warning! State not equal in request and response` ```py @router.get("/github", response_class=RedirectResponse) async def github(): authorization_url, state = github_oauth.authorization_url(authorization_base_url) return authorization_url @router.get("/callback") async def authorize(code:...

From Autodesk API an example error is: {'developerMessage': 'The required parameter(s) client_id not present in the request', 'errorCode': 'AUTH-008', 'more info': 'https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/'} parameters.py :validate_token_parameters(params): if 'error' in params: raise_from_error(params.get('error'), params)...

This block of code should check the `status_code` of the response before parsing. If the server returns a 403, or any non 2xx code for that matter, then that error...

It is very confusing to raise a MissingTokenError when the server has returned an HTTP server error. Instead, raise requests.exceptions.HTTPError if the server has returned an HTTP 5XX server error....

Hello. I feel that it should be possible to add `auth` (as supported by requests, in tuple form) to `auto_refresh_kwargs` in `OAuth2Session`. Right now both possible situations are bad: -...

``` client_id = "ids" client_secret="secrets" response_type="code" @app.route('/auth', methods=['GET']) def auth(): spotify = OAuth2Session(client_id=client_id, redirect_uri=redirect_uri) authorization_url, state = spotify.authorization_url(authorization_base_url,response_type=response_type) session['oauth_state'] = state return redirect(authorization_url) ``` with response_type being a parameter required...