access-token

Make longer access tokens with django_oauth_toolkit

Make longer access tokens with django_oauth_toolkit Question: I have set up the OAuth 2.0 authentication in a Django Rest Framework project with the django_oauth_toolkit library. But I have noticed the access_token length is quite short. How can I make these tokens larger? I mean, increase the number of characters each token has. I have been …

Total answers: 1

How do you get and use a Refresh Token for the Dropbox API (Python 3.x)

How do you get and use a Refresh Token for the Dropbox API (Python 3.x) Question: As the title says, I am trying to generate a refresh token, and then I would like to use the refresh token to get short lived Access tokens. There is a problem though, in that I’m not smart enough …

Total answers: 3

python oauth2 client issues when trying to get authorization token

python oauth2 client issues when trying to get authorization token Question: I am trying to use OAuth2 to get an authorization token using Python to a REST API. I am successful doing so using CURL but not with python. I am using the examples provided at the following docs: https://requests-oauthlib.readthedocs.org/en/latest/oauth2_workflow.html The following is my code: …

Total answers: 2

Python request with authentication (access_token)

Python request with authentication (access_token) Question: I am trying to use an API query in Python. From the command line I can use curl like so: curl –header "Authorization:access_token myToken" https://website.example/id This gives some JSON output. myToken is a hexadecimal variable that remains constant throughout. I would like to make this call from python so …

Total answers: 8