requests-oauthlib
requests-oauthlib copied to clipboard
OAuthlib support for Python-Requests!
I am trying to do the following: ```python oauth = OAuth2Session(client=LegacyApplicationClient(client_id=CLIENT_ID)) try: token = oauth.fetch_token( verify=VERIFY, token_url=TOKEN_URL, username=username, password=password, client_id=CLIENT_ID, scope=SCOPE, client_secret=CLIENT_SECRET) except InvalidGrantError: pass except (MissingTokenError, ConnectionError) as e:...
* Python Version: 2.7.12 * Requests Version: 2.12.4 * Requests-Oauthlib version: 0.7.0 Appears somewhat related to this issue: https://github.com/kennethreitz/requests/issues/1252 We're trying to send a multipart/form-data request that includes a text...
Hello, In the [Refreshing tokens in OAuth2](http://requests-oauthlib.readthedocs.io/en/latest/examples/real_world_example_with_refresh.html) document, the example stores the fetched token into the session, as shown below. ```python # We use the session as a simple DB...
I'm using this library via the flask-dance package to add [Schoology](https://www.schoology.com) as a sign in option for my site. For some reason schoology expects GET instead of POST for the...
I am trying to implement login using flask-login and requests-oauthlib. I want it to be pretty much a single user login so I put some conditions to make sure the...
* Add a new compliance hook for token_request Allow us to modify the request that is sent when a new token is requested. This helps in situations where the standard...
Hi, i need to implement the MS365 on_behalf_of flow [0] (for brevity: i make an authorization code flow at beginning, and then i make another token request with custom params...
I need to code access to a site which uses "Bearer" token authentication which is obtained by initially providing user/password to the same site without asking for any code or...
``` google = OAuth2Session(client_id, redirect_uri=redirect_uri) token = google.fetch_token(token_url, client_secret=client_secret, authorization_response=google_response) ``` Google returns a token, that looks(prints) like this: ``` {u'token_type': u'Bearer', u'refresh_token': u'1/sdfsdfsfd, u'access_token': u'sdfsdfsfdsfdsfd', u'id_token': u'sdffsdfsdfsdfsdf', u'expires_in': 3600,...
I'll make a reference to a post I ran into at [StackOverFlow](https://stackoverflow.com/questions/49143245/requests-oauthlib-twitter-authentication-authentication-automation). It can give an sample of a situation that happend with me while I was following the same...