Questions tagged [oauth2client]

[DEPRECATED] The oauth2client python library made it easy to connect to resources protected by OAuth2.0. The library is deprecated. Use google-auth and oauthlib instead.

Deprecation Notice:

oauth2client is now deprecated. No more features will be added to the libraries and the core team is turning down support. We recommend you use google-auth and oauthlib. For more details on the deprecation, see oauth2client deprecation.


The oauth2client library comes as part of the google-api-python-client, but is also available as a separate download if you just need the OAuth 2.0 capabilities.

The library supports these Python environments:

  1. Python 2.4, 2.5, 2.6, 2.7
  2. Google App Engine
  3. Django

This is a pure Python library that can be used from any platform. Samples are included for Google App Engine, and Django. The library has been tested against the Google and DailyMotion implementations of OAuth 2.0.

210 questions
1
vote
2 answers

Error running Vorto Dashboard for Bosch iot suite

I am trying to run Vorto dashboard on Raspberry Pi to visualize my Bosch IoT "things" data. In order to run the Vorto Dashboard, I installed npm and nodejs and created the config.json file. I am getting the below error whenever I try to run the…
1
vote
1 answer

How to implement google signin hybrid server-side flow without python oauth2client lib

I have implemented hybrid server side google signin flow using python27. Where webapp sends one time code to backend and backend replaces with refresh_token, id_token and access_token. I have followed this doc to implement this…
1
vote
1 answer

Spring OAuth2 Client: I/O error on POST request for oauth2/v2.0/token

Im using spring oauth2 client against Azure AD - I have it working successfully on my localhost:8080 When I deploy this working OAuth2 Client code against Azure AD on remote server with https enabled https://serverhost.corp.com , I get an Auth Code…
1
vote
1 answer

oauth2client.flask_util redirect_uri in http instead of https

I know oauth2client is deprecated but still, that's the one we use. When I start the oauth2 process with Google, it always tries to redirect me to the HTTP version of my app. I've seen the url_for method of Flask is supposed to be based on the…
Valentin Coudert
  • 1,759
  • 3
  • 19
  • 44
1
vote
2 answers

Microsoft Outlook - Add custom parameter authorization-request

I am using Microsoft Outlook rest php api to auth account and get user event. I want to add custom parameters into the redirect URL. I did not found any way to add custom parameters into the redirect url. I am using this outlook/rest/php api - here…
1
vote
1 answer

Is it ok to add access_token authorities to the OAuth2LoginAuthenticationToken?

I have a simple spring boot application with two services - ui and resource. I trying to configure oauth2+oidc authentication using uaa server. When I login in the ui service, spring security creates authentication result (in…
Kirill
  • 1,540
  • 4
  • 18
  • 41
1
vote
0 answers

what is the method or class that is generating access token and refresh token in django oauth2_provide

I am trying to create an api that will generate an oauth2_provider access token and refresh token, and it will store in oauth2_provider models. Actually i am using below API to generate both tokens path('o/', include('oauth2_provider.urls',…
1
vote
2 answers

Unable to verify Firebase token

I am making an app in flutter which uses Google sign-in. I also have a Django backend linked to the app and I want to verify the user in the Django backend. I found many solutions on the internet but none is working. Probably I am messing up…
1
vote
1 answer

from oauth2client.service_account import ServiceAccountCredentials : cannot import name 'opentype'

I use python 3.6.0. I want to play with the Google Drive API. When I import oauth2client.service_account I get this error : Traceback (most recent call last): File "test.py", line 3, in from oauth2client.service_account import…
Aaron Aben Danan
  • 322
  • 1
  • 3
  • 14
1
vote
1 answer

Download files from google bucket

I'm having issues downloading files on my google bucket I followed this Google tutorial(using a client library & service account) Here is the python code I use (from google example) : import json from httplib2 import Http from…
Elerir
  • 31
  • 1
  • 1
  • 8
1
vote
1 answer

Using tools.run_flow() raises SSLHandshake "certificate verify" error in Google Sheets API tutorial

I'm am pretty much following the Google Sheets getting started (in Python) to a tee. I've gotten the program to work on my Mac laptop, but it is failing as I am trying to run it on Windows. So far, I've checked that we do not have the firewall…
John Snow
  • 1,898
  • 2
  • 27
  • 48
1
vote
0 answers

How to find user's email ID? - Google Oauth2 API PHP Client

I am implementing an Audio library manager which uses user's google drive as backend storage. I am using PHP (google-api-php-client-2.2.1) to get the user's authorization for accessing his/her google drive. So far I am able to receive access token…
paul_brian
  • 31
  • 1
  • 3
1
vote
1 answer

Exchange the Authorization Code for an Access Token In OAuth 2.0

I am trying to exchange the authorization code (which is in the url of this page) for an access token using oAuth 2.0. I am running the following php code and am getting an error (http error 500). I can't figure out what is wrong with the…
Rick
  • 35
  • 1
  • 4
1
vote
1 answer

Oauth2Client service account using a json API key

I am building an app using google's drive API and I am using a JSON API key. Whenever I run the following code: # these are api managing credentials scope = ['https://spreadsheets.google.com/spreadsheets'] creds =…
1
vote
1 answer

oauth2client for Blogger posting from a telegram bot in Heroku server

I have just deployed my telegram bot with python-telegram-bot in Heroku. My webhooks bot uses blogger for posting certain things. I did this until now with a sligthly modified custom version of sample_tools, from module…
madtyn
  • 1,469
  • 27
  • 55