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

oAuth2 security issue with clinet_id and secret key : user can press inspect element and earn clinet_id and secret key

I write a rest api with yii2 and i am using oAuth2 , the problem is when user want login , client web application should send request to get token , request should contain client_id and secret_key and username and password in this case user can…
zia
  • 278
  • 1
  • 10
1
vote
0 answers

Github module grabber not working for oauth2client

So I made this script that grabs some modules from github to use in Python. Therefore, no python packages need to be pre-installed before running the code. It works great, however, with oauth2client I seem to have some problems. It throws an error…
Noud
  • 11
  • 2
1
vote
1 answer

Google Python API tries to import the deprecated oauth2client.contrib.multistore_file

I am trying to build the discovery docs for my endpoints application, but I am getting the following error: pc@pc:~/backend$ endpointscfg.py get_discovery_doc [PROJECT_NAME] Traceback (most recent call last): File…
1
vote
1 answer

Unable to patch user with Oauth Custom Schema using delegated user G-Suite Admin SDK Python

I'm trying to patch a user with some custom user fields using a Google Oauth2 service account but I get a 403 Unauthorized response if I delegate to any other user than myself. I've effectively been guided by the following…
Mike Kirk
  • 11
  • 1
1
vote
0 answers

How to avoid HttpAccessTokenRefreshError if the grant is deleted from list of permitted apps on Google

I'm new to Python and oauth2client library. I'm building a def which check for a valid credentials. I noticed that if I delete the grant from https://myaccount.google.com/permissions, then credentials.get_access_token(http) or similar does returns…
User 60775
  • 11
  • 1
1
vote
1 answer

Google Calendar API FileNotFoundError:

I am trying to create events for Google Calendar but am getting a FileNotFoundError for 'client_secret.json'. from __future__ import print_function from apiclient.discovery import build from httplib2 import Http from oauth2client import file,…
Harry Tong
  • 259
  • 1
  • 6
  • 14
1
vote
2 answers

Enabling server side offline access to Google API from iOS app

I am trying to enable server side offline access to Google APIs where the user authenticates from an iOS app. This is to allow a server to have continual access to Google APIs outside of the iOS app. Google documents the approach…
1
vote
0 answers

Accessing non-Google APIs using oauth2client library

I am trying to evaluate the usage of oauth2client and oauth2 libraries on Python. We have already installed the former on our server for using some Google API. Now I am trying to find out a way to use the same library to use external API too. I was…
kausal_malladi
  • 1,542
  • 3
  • 14
  • 30
1
vote
0 answers

PHP - POST array data with Guzzle or oauth2-client

I need some help connecting to deviantArt's API for whois. I am building a Laravel app that needs to connect to deviantArt's API. I am able to successfully connect to the API using Socialite, The League's OAuth2-Client, Guzzle and cUrl, but only for…
whoacowboy
  • 6,982
  • 6
  • 44
  • 78
1
vote
0 answers

appengine access via oauth2 python script (replacing ClientLogin)

I have an App Engine project which: uses google.appengine.api.get_current_user() to handle users (and login:required) has a URL to collect some data (which requires login) has Google users but on a custom domain I used to have a script to pull the…
1
vote
1 answer

py2exe missing modules: oauth2client.client and gspread modules

I have created the following Python script using the gspread and oauth2 modules import gspread from oauth2client.client import SignedJwtAssertionCredentials credentials = SignedJwtAssertionCredentials("client_email","private_key",…
Nicola Zilio
  • 355
  • 6
  • 15
1
vote
1 answer

CryptoUnavailableError: No crypto library available (using oauth2client in google app engine)

I am using gspread to connect my application to spreadsheet and for that I am using the following code import json import gspread from oauth2client.client import SignedJwtAssertionCredentials json_key =…
1
vote
1 answer

hello.js: Is it possible to set the provider's settings dynamically?

I have implemented a new module for hello.js. I need the auth, grant and base to be dynamic. Is there a way to set/override these values from the hello.init() call? My module looks like this: (function(hello) { hello.init({ …
eyettea
  • 1,376
  • 2
  • 16
  • 35
1
vote
1 answer

org.springframework.web.client.RestTemplate - POST request for resulted in 400 (Bad Request); invoking error handler

I'm looking to developed a Spring OAuth2RestTemplate code and taken a reference from Access tokens using 2 legged Oauth 2.0 and Apache OauthClient. There are two suggestions been given, First suggestion using Apache Oltu worked absolutely fine to…
user4798111
1
vote
1 answer

How to set access grant for oauth2_client?

I am new to Boto and Google Cloud Storage and am following this tutorial. I am experiencing two problems: 1) When running the file from command line GOOGLE_STORAGE = 'gs' # URI scheme for accessing local files. LOCAL_FILE = 'file' # Fallback logic.…
Houman
  • 64,245
  • 87
  • 278
  • 460