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

Amazon Cloud Drive invalid scope

I am trying to authenticate to the cloud drive API using OAuth2. The scope string query parameter in the URL is: scope=clouddrive%3Awrite+clouddrive%3Aread_all The response that I get…
Milind
  • 415
  • 8
  • 24
0
votes
1 answer

How can I use SignedJwtAssertionCredentials with a Google Analytics JSON key file?

I'm trying to connect to Google Analytics in a server application, following the instructions here: https://developers.google.com/analytics/devguides/reporting/core/v3/quickstart/service-py. This page suggests using the P12 key, but I need to use…
0
votes
1 answer

Is OAuth2Client (NXOAuth2Client) supports OAuth2 Implicit Grant?

Implemented iOS app using Oauth2Client but there is new requirement: Implicit Grant. Is OAuth2Client (NXOAuth2Client) supports OAuth2 Implicit Grant?
mobiledev Alex
  • 2,228
  • 2
  • 28
  • 30
0
votes
1 answer

Access GA API with Django: /accounts/login/ redirect issue

I'm working on Django app that will provide to users the information about their Google Analytics accounts (Account ID, Property, View ID). But I'm stacked on the very beginning trying to resolve the problem with authorization of the user (handling…
0
votes
0 answers

ZF2 client to Salesforce REST API

My system should verify user's type during registering process. The verification is done with data from Salesforce. I created Salesforce REST API. I wondering how should I create ZF2 client to consume Salesforce REST API ? Should it be done as a zf2…
vlr
  • 780
  • 4
  • 16
  • 33
0
votes
1 answer

Locally activated oauth2 credentials not used by service on server

I have a server running ubuntu 14.04, running a flask-based website with some custom API functionality that I am testing. For this website, I have some code that uses oauth2client to connect to Youtube. This has to be authenticated manually, and is…
Energya
  • 2,623
  • 2
  • 19
  • 24
0
votes
0 answers

How to prevent unit testing from exiting when calling webbrowser.open()?

I am developing unit test for code that use Google oauth2client.tools run_flow(). The problem is, this function will call Python webbrowser.open(), that will eventually (cmiiw), exit itself by calling sys.exit(). Therefore, even if I halt the code…
swdev
  • 4,997
  • 8
  • 64
  • 106
0
votes
1 answer

Strategies for Refreshing OAuth token in a distributed application

We have a distributed webapi application that uses OAuth token issued by the provider to communicate with an API, its lasts for a specific amount of time, We are thinking of storing the token in a datastore and retrieving it before making a call to…
nen
  • 621
  • 2
  • 10
  • 26
0
votes
1 answer

Packaging PyOpenSSL with py2exe

I have write a python script for accessing Google's spreadsheets by it's API. Thus, I use the 3-party module "oauth2client" to achieve this goal, and importing it in my python script like this: from oauth2client.client import…
skydome20
  • 3
  • 4
0
votes
1 answer

GMail apiclient : exclude promotion and social network mail from inbox label

I'm trying to get my last mail using the apiclient and oauth2client librarys (quickstart from here : https://developers.google.com/gmail/api/quickstart/quickstart-python). I am curently able to retrieve all my last mail, including promotion mail and…
FunkySayu
  • 7,641
  • 10
  • 38
  • 61
0
votes
2 answers

How to add client_secret without using argparser?

I want to test Google Genomics. I have a project and I can run main.py from the getting started with the api. But this files hides under the hood of oauth2client how credentials are generated: import argparse import httplib2 from apiclient.discovery…
llrs
  • 3,308
  • 35
  • 68
0
votes
1 answer

how to access google play api by oauth2client.client python 3?

Does anyone try to get a google play or whatever google api by oauth2client.client? Some, I wrote the next bits of code: import httplib2 import requests from oauth2client.client import flow_from_clientsecrets flow =…
Leo
  • 649
  • 3
  • 9
  • 20
0
votes
0 answers

Doorkeeper OAuth2-Client refresh_token only works with original client instance

So I am using doorkeeper in my Rails 4 app and built an API wrapper for it to help my ruby users out. Almost everything works the way it's supposed to. I added an OAuth2 client that looks like this: require 'oauth2-client' module MyApiWrapper …
topher
  • 301
  • 1
  • 5
  • 14
0
votes
1 answer

Undefined symbols for architecture error occurred

I got error when debugging iOS application and am stuck all day. What I did is: install OAuth2Client library via cocoapods. create viewcontroller to show google login page. got the following error when debugging. Undefined symbols for…
raimtoon
  • 725
  • 1
  • 11
  • 27
0
votes
1 answer

Django - Always receiving __init__() takes exactly 2 arguments (5 given) when trying to store oauth2 credentials in db

I've been trying to save credentials after a user uses their youtube account to authenticate their account. I've been following this example to store my new created credentials in my database for later use. …
1 2 3
13
14