requests-oauthlib
requests-oauthlib copied to clipboard
OAuthlib support for Python-Requests!
I am trying to use the refresh_token method to get an access token and getting this error. The API I am using requires that I use the value "refresh_token" for...
oauthlib will [produce an error if a body is sent with a GET/HEAD method.](https://github.com/oauthlib/oauthlib/blob/master/oauthlib/oauth1/rfc5849/__init__.py#L310) ``` elif http_method.upper() in ('GET', 'HEAD') and has_params: raise ValueError('GET/HEAD requests should not include body.') ```...
I always get this error: oauthlib.oauth2.rfc6749.errors.InvalidClientError oauthlib.oauth2.rfc6749.errors.InvalidClientError: (invalid_client) client_secret is undefined when i follow in the similitude of the examples in the docs however using Vkontakte app credentials.
I needed to overwrite the `refresh_token` method as my backend do not provide a refresh token. Instead, `fetch_token` is called. But since I do not want a token_updater, I just...
Good day, I am having some issues to getting Oauth to work when moving from "localhost" (for development) to a real domain name. The main differences between the environments are...
Hello, I faced an error when go on `fetch_token()` with received url with code and state: ``` 127.0.0.1 - - [15/Jan/2019 16:41:02] "GET /oauth2?code=SOME-CODE-DATA&state=SOME-STATE-DATA HTTP/1.1" 500 - Traceback (most recent...
I'm working on a legacy app for a client, i'm having a weird issue in django 1.6.10 at the very end of the oauth2 conversation using requests-oauthlib 1.3.0. The Django...
This is a follow-up on #340. I agree that `client_secret` might be empty as of the spec: https://tools.ietf.org/html/rfc6749#section-6 ``` authenticate the client if client authentication is included and ensure that...
The current README example is out of date as Twitter now used OAuth2. Would it be possible to update the README with an example for the OAuth2 Twitter API?
An example using an explicit callback URI. ``` >>> request_token_url = 'https://api.twitter.com/oauth/request_token' >>> authorization_url = 'https://api.twitter.com/oauth/authorize' >>> oauth_session = OAuth1Session('client-key', client_secret='secret', callback_uri='https://127.0.0.1/callback') >>> oauth_session.fetch_request_token(request_token_url) { 'oauth_token': 'sdf0o9823sjdfsdf', 'oauth_token_secret': '2kjshdfp92i34asdasd', }...