Questions tagged [requests-oauthlib]

32 questions
0
votes
0 answers

How to disable authentication YouTube every time a message is sent through the API

I want to add messages to the live chat of my channel YouTube. I took an example from the API. Everything works, only the application requests Google OAuth 2.0 when entering each new message. How can this be avoided?How can I make sure that…
0
votes
0 answers

OAuth urllib3 - ValueError: invalid literal for int() with base 16: b''

I am using OAuth authentication to fetch the Access token using python. Below is my code snippet from oauthlib.oauth2 import BackendApplicationClient from requests_oauthlib import OAuth2Session client =…
Dinesh
  • 1,135
  • 2
  • 15
  • 22
0
votes
0 answers

Can't access URL and make API calls that behing Microsoft Authentication

Trying to make calls to REST API that's behind Micrsoft Authentication, however, having difficulty on passing the Authentication part. Microsoft Authenticator is simple https://login.microsoftonline.com. Attempted to utilise OAuthLib…
Akmal Soliev
  • 572
  • 4
  • 17
0
votes
1 answer

Django OAuth with Xero SDK can't access session for oauth2_token_getter and oauth2_token_saver as no request object can be passed

I am using Django with requests_oauthlib to access the Xero API using the xero-python SDK. Xero Starter Demo requests-oauthlib I am trying to use request.session to store the oauth token information. This works well on the initial call and callback,…
Levitybot
  • 481
  • 5
  • 8
0
votes
1 answer

Log into WSJ using Python requests

I am trying to log into the Wall Street Journal's website using the Python module requests. I know that other people on these boards here have successfully used Selenium to accomplish the same. However, I would like to understand the workflow for…
Simon
  • 405
  • 2
  • 8
0
votes
0 answers

Python requests-oauthlib - adding parameters to authorization header for Oauth1 request

In my Flask App, I'm using the Python requests-oauthlib library to make OAuth1 requests (https://requests-oauthlib.readthedocs.io/en/latest/oauth1_workflow.html#). One of the API calls that I need to make require passing the…
Vee
  • 1,821
  • 3
  • 36
  • 60
0
votes
1 answer

Make OAuth2 token communication behind the scenes in python

I am trying to build a most basic python app that uses OAuth2 to log into GitHub and fetch from there my username - using requests-oauthlib (this one: https://requests-oauthlib.readthedocs.io/en/latest/examples/github.html). Here is the code from…
Daniel Pop
  • 456
  • 1
  • 6
  • 23
0
votes
1 answer

How do I get the "auth_code" from location key in the request header?

I am using a combination of the Robot request library, Python requests library and the Python requests_oauthlib library for the testing of an OAuth2 project. I wonder if there is an easy way to grab the auth code (without string indexing) so I can…
Sorath
  • 543
  • 3
  • 10
  • 32
0
votes
1 answer

Can not build Using Google OAuth2 with Flask by Requests-OAuthlib

I try build gooogle login with flask login. I find the thread here Using Google OAuth2 with Flask I was able to port the accepted answer to use Requests-OAuthlib instead of Rauth. As of this writing, the package's last commit was on June 2019 and…
0
votes
1 answer

OAuth1 authentication using Requests-OAuthlib failing

I am trying to authenticate with OAuth1 using Requests-OAuthlib and it is failing. I am taking help from below website : https://requests-oauthlib.readthedocs.io...#oauth-1-0 >> client_key = 'xxxx' >> client_secret = 'xxxx' >> callback_uri =…
0
votes
1 answer

Can I set a base URL for all OAuth2Session requests?

My question is specifically regarding the Microsoft Graph API, but a more widely applicable solution would be welcome. I have a session instantiated as follows: # Token acquisition code left out session = OAuth2Session(token=token) HTTP requests…
0
votes
1 answer

Listrak Invalid Credentials error using Python requests_oauthlib

Trying to get a valid response from the Listrak API using requests_oauthlib and all I ever get is Invalid Credentials. Have attempted to reset the keys but same issue. Code is as follows, <> sections replaced with actual keys in my…
0
votes
0 answers

Twitter API - Request Delay Issue - Random Delay? - Python Requests

Once I send my requests they comeback instantly but there seems to be an issue where I get a random delay in between requests out of no where!? I really do require there to be no delay, looking for all the help I can get! import requests from…
0
votes
2 answers

How to get a forever token using Oauth1?

I sell products online through a website I wrote. To manage my fulfilment flow, when a purchase is made I want my app to automatically create a card on a Trello board. I've managed to do everything okay except that after a few minutes the token that…
0
votes
1 answer

OAUTH2 works well in localhost(with sub.domain.com) but fails with "401 url not authorized" in server

after a lot of work and learning. I have developed an authentication service OAUTH2 in flask w / gunicorn, uses the module requests-oauthlib and have reverse proxy to nginx, all within docker-compose(alpine images), as I am new in this I want it…