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
2
votes
1 answer

Spring Boot with OAuth2 behind reverse proxy

I'm new with Spring Security and trying to develop Spring Boot app with Google login using OAuth2 which runs under hostname:8080. This app is behind Apache reverse proxy server https://url.com. Spring Boot version 2.1.0 Spring Security version…
2
votes
1 answer

Creating google api credentials (from service account with scope and delegated account) with oauth2client

To access GMail API (and personify calls) I'm using a service account (created from Google Cloud Platform). The json file I have looks like this { "type": "service_account", "project_id": "[PROJECT-ID]", "private_key_id": "[KEY-ID]" "private_key":…
2
votes
1 answer

oauth2client throwing AttributeError when run as service

I'm trying to access the google calendar API with a simple python script, running on a raspberry pi. This script, from the example here: from oauth2client import file, client, tools store = file.Storage('home/pi/brief/token.json') creds =…
2
votes
1 answer

Windows local appengine usage: oauth2client ImportError

I m working with App Engine Standard, developing a Python backend service and, at some point, I told myself: "Hey why don't you try out and run the server locally while using the remote Datastore" I can run this code locally but I couldn't figure…
RebH
  • 43
  • 6
2
votes
2 answers

Debugging an OAuth client bad response. I'm using PHP, Laravel5.3, PHPLeague OAuth Client and Guzzle

Let me start by thank you for taking the time. I'm a newbie so let me know if you need more information. So I'm trying to setup an OAUTH2 client in Laravel to connect up to an API provided by CLIO. I'm using PHPLeague's OAuth2 Client Library which…
user6890934
  • 39
  • 1
  • 7
2
votes
3 answers

How to authorize a Python Google API client service given an OAuth2 access_token?

I have implemented the python-social-auth library for Google OAuth2 in my Django project, and am successfully able to log users in with it. The library stores the access_token received in the response for Google's OAuth2 flow. My question is: use of…
2
votes
1 answer

Python oauth2client async

I am fighting with tornado and the official python oauth2client, gcloud... modules. These modules accept an alternate http client passed with http=, as long as it has a method called request which can be called by any of these libraries, whenever an…
DevLounge
  • 8,313
  • 3
  • 31
  • 44
2
votes
1 answer

Any way to get the raw response when OAuth2 code is exchanged with Google+ iOS SDK?

I am integrating the Google+ sign-in using Google's iOS SDK. Upon a user successfully authenticating, the function finishedWithAuth() gets called, with one of the parameters being an instance of GTMOAuth2Authentication. The client will need to send…
Barney
  • 73
  • 1
  • 5
2
votes
2 answers

oauth2client.client.CryptoUnavailableError: No crypto library available

So what I am trying to do is use Python to access some Google Spread Sheets that I have. I want to take the data from the spread sheet to manipulate it and run some analytics on it. I have used gspread in the past successfully, but now when I try to…
Thomas
  • 21
  • 1
  • 4
2
votes
1 answer

Getting a weird error when working with Laravel 4 and the php league OAuth2

I'm trying to get a Social login with Facebook in place using Laravel and The league OAuth2 client but I'm getting this error: Required option not passed: access_token Array (…
Imad Bloum
  • 23
  • 2
2
votes
1 answer

Please confirm: SignedJwtAssertionCredentials only works with SpreadsheetsClient, not SpreadsheetsService?

After a week of Googling and trial & error, I finally got my Python script that adds a row to a Google spreadsheet to work with OAuth2. For the benefit of others who may suffer the same trauma, here's my working code: script_dir =…
Pete Segal
  • 21
  • 4
2
votes
1 answer

RemoteTokenService for multiple client application

How can I use RemoteTokenService for more than one client application (with different client_id and secret )? UPDATE public ResourceServerTokenServices tokenService() { RemoteTokenServices tokenServices = new RemoteTokenServices(); …
2
votes
1 answer

How can I use saved tokens in NXOAuth2?

I am trying to implement a solution using the NXOauth2 pod to handle OAuth2 on my iOS app. I am able to go through the installed application flow to get OAuth2 properties including accessToken and refreshToken - and the account is being saved into…
Eric
  • 5,815
  • 3
  • 25
  • 34
2
votes
1 answer

Python library that supports setting oauth response_type

The server I am working with does not support code as a response type. I attempted to use flask-oauth but it does not support setting a response type. I was wondering whether it was possible to configure flask-oauth to change it to token. I have…
2
votes
1 answer

How to obtain oauth 2.0 token from google plus api in android?

I have a problem with obtaining oauth 2.0 token from google API. I am currently writing app for android, where I want to have three methods of signing in - via facebook (done), via custom oauth 2.0 provider (also done) and via google plus - it makes…
Zkart
  • 55
  • 1
  • 5