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
43
votes
9 answers

The signing fingerprint you specified is already used by another Android OAuth2 client

Some time ago I created an example project (lets call it "example project") with Oauth2 client id for android application in Google APIs console. I also added SHA1 fingerprint and package name (for example com.package.name). My mistake was that an…
Elena
  • 503
  • 1
  • 5
  • 10
24
votes
3 answers

How to get Google Analytics credentials without gflags - using run_flow() instead?

This may take a second to explain so please bear with me: I'm working on a project for work that requires me to pull in google analytics data. I originally did this following this link, so after installing the API client pip install --upgrade…
14
votes
3 answers

got 'invalid_grant' in oauth2 SignedJwtAssertionCredentials

I am trying to make an oauth2 access_token in a server-to-server JSON API scenario. But it failed with invalid_grant error, please help. from oauth2client.client import SignedJwtAssertionCredentials KEY_FILE = 'xxxxxxxxxxxx-privatekey.p12' with…
Pahud Hsieh
  • 376
  • 2
  • 8
12
votes
1 answer

how to store google oauth token in django : Storage or database

The Google APIs python client has special support for the Django and in the examples given by Google (https://developers.google.com/api-client-library/python/guide/django), the class oauth2client.django_orm.Storage is used to store and retrieve…
11
votes
2 answers

AttributeError: 'module' object has no attribute 'SignedJwtAssertionCredentials'

Problem: I've been using Python Script Samples by Google to upload the apk to Play Store and to get list of apps published via my account (list_apks.py and upload_apk.py). However recently it started breaking. I've tried to update the packages like…
9
votes
2 answers

How do I use google.auth instead of oauth2client in Python to get access to my Google Calendar

Several years ago I created a small Python program which were able to maintain my calendar using oauth2client which is now deprecated and replaced with google.auth - but I cannot find any useful documentation and my program stopped working…
9
votes
2 answers

How to share an Access Token between an MVC 5 web application and Web API 2 application

In this instance I am having the user log into the (MVC 5) Web application, which then acts as proxy to log into the (Web API 2) API (using basic over SSL) and return a Bearer/Access Token. I'm using the…
teatime
  • 341
  • 1
  • 3
  • 10
8
votes
2 answers

Is Oauth2.0 appropriate for first-party apps?

I am developing a SPA application in angular and I have a lot of confusion about the correct way to implement authentication and authorization. First of all, the application is a first-party app, which means that I am developing both the…
Snake
  • 113
  • 1
  • 9
8
votes
4 answers

ImportError: No module named gspread

I'm trying to work with the gspread library in python. i installed the lib with pip install gspread but when I run the code: import gspread from oauth2client.service_account import ServiceAccountCredentials scope =…
Niels Dingsbums
  • 113
  • 1
  • 1
  • 7
8
votes
2 answers

Proxy configuration in OAuth2RestTemplate

I need to consume an API which is secured by OAuth2. For that I am using OAuth2RestTemplate. But am getting below error: java.net.ConnectException: Connection timed out: connect This is happening due to proxy issue. I Know how to set proxy in…
aks2012
  • 121
  • 1
  • 7
8
votes
2 answers

Django 1.7 google oauth2 token validation failure

I'm trying to get through the process of authenticating a Google token for accessing a user's calendar within a Django application. Although I've followed several indications found on the web, I'm stuck with a 400 error code response to my callback…
Seether
  • 1,524
  • 1
  • 14
  • 28
7
votes
2 answers

Provider ID must be specified for oauth2 client?

I am trying setting up a oauth2 client with spring-boot. I have this dependencies on my pom.xml: org.springframework.boot spring-boot-starter-oauth2-client
Kleber Mota
  • 8,521
  • 31
  • 94
  • 188
7
votes
2 answers

Spring Boot + Security OAuth2.0 Client with Custom Provider

I am creating a OAuth2.0 client for a custom OAuth2 provider in Spring Boot + Security (version 5) application. Below is the application.properties which has all the configuration and there is no additional configuration class in my…
7
votes
1 answer

'AttributeError: 'module' object has no attribute 'file'' when using oauth2client with Google Calendar

I'm using the example script for google calendars python api (https://developers.google.com/google-apps/calendar/quickstart/python#step_3_set_up_the_sample) to try and print out all the calendar events. However I am getting an error…
JMzance
  • 1,704
  • 4
  • 30
  • 49
6
votes
0 answers

How to access OAuth 2.0, REST API in GNOME 3.0 shell extension?

How would I port the OAuth 2.0 implict grant flow from a browser environment if I wanted to access the REST API beneath it through a GNOME shell extension ? How would I redirect the user to the OAuth 2.0 decision endpoint through a login screen? If…
Johny Jose
  • 533
  • 4
  • 11
1
2 3
13 14