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

Google App Engine - Endpoints API - Consuming from another App Engine App -python

I am trying to execute a function provided by one app engine app that I have written (python) that uses Endpoints, in a second similar app engine app. I currently have both app engine applications running on appspot using endpoints with oauth2. I…
2
votes
1 answer

Facebook OAuth redirect_uri isn't an absolute URI. Check RFC 3986.\",\"type\":\"OAuthException\",\"code\":191

I've been struggling this afternoon to put my application using facebook oauth. I am getting an error while trying to get the access token: {\"error\":{\"message\":\"redirect_uri isn't an absolute URI. Check RFC…
Bonomi
  • 2,541
  • 5
  • 39
  • 51
2
votes
2 answers

OAuth 2.0 Implicit Grant Flow - clientId and accessToken exposure security

Since OAuth 2.0 Implicit Grant Flow exposes its mechanism e.g. using JavaScript, in the client app to the resource owner, the client Id and the access token are exposed. I have not been able to find a clear answer on what can be done to prevent from…
wonster
  • 746
  • 1
  • 9
  • 11
1
vote
0 answers

Need help getting google analytics to authenticate - "cannot import name 'util' from 'oauth2client'

I'm trying to get google analytics API to authenticate, and whilst I can find loads of tutorials online they all involve the following code: #Load Libraries from oauth2client.service_account import ServiceAccountCredentials from…
1
vote
1 answer

How to use the Google Sign In access token instead of authorization code for getting the data from the Google Search Console?

I want to access the listed websites data in the Google Search Console using the Google Sign-In access_token (that one can get as the response when using Google Sign-In). But, the thing is I can access that data only by using the authorization_code…
1
vote
0 answers

setting the roles for the user when using Google/FB/Github as Authorization server

I am planning to use Google as my OAuth2 Authorization server. How to configure the roles for the user, in case we are using Google,FB,Github as our Auth server? My Spring Security expects the roles/authorities to allow/deny access to the protected…
zilcuanu
  • 3,451
  • 8
  • 52
  • 105
1
vote
1 answer

Unable to make multiple requests in a row using the google drive API

I have a problem with my google drive API. I use this code to connect to my google account and get service : from google.oauth2.credentials import Credentials from google.auth.transport.requests import Request from google_auth_oauthlib.flow import…
Math
  • 33
  • 5
1
vote
0 answers

How to store Google credentials in Django model

How I can store Google credentials in Django model without using oaut2client -> DjangoORMStorage? Old version with using oaut2client: storage = Storage(models.GoogleCred, 'act', act, 'credential') storage.put(credentials) But oaut2client…
1
vote
0 answers

Exception Handling When Using Spring OAuth2 Client Enabled WebClient

I have an OAuth2 enabled WebClient configured using Spring's very convenient spring-boot-starter-oauth2-client library. It works perfectly in terms of getting and managing tokens when I make requests to my OAuth2 secured resource server API I'd like…
CeeTee
  • 778
  • 1
  • 9
  • 17
1
vote
1 answer

Google OAuth2 authentication issue: no web browser response after user consent

Issue Making an standalone (non-web) app which utilizes Google Drive API for multi-platform data synchronization. During OAuth2 authentication (oauth2client.tools.run_flow), web browser does not respond (= issue) sometimes after user's consent.…
1
vote
1 answer

RefreshError while trying to access spreadsheet from python

I was trying to access my spreadsheet GetHookedTest from python following this tutorial. I've added service account successfully and here is my credentials. Shared by sheet with test@gethooked.iam.gserviceaccount.com { "type": "service_account", …
1
vote
0 answers

Angular & Spring Boot 2 & OAuth2 Client

I have configured my spring boot as below: spring: security: oauth2: client: registration: myClient: client-name: name client-id: yyyyyy client-secret: xxxxx scope: …
Thomas Banderas
  • 1,681
  • 1
  • 21
  • 43
1
vote
3 answers

An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: 406 Not Acceptable

I am trying use spirng-oauth2-client to connect my project with a third-party authentication server (following this instruction), ans right now when I run the application, after the authorization step, I am redirect back for my application, and a…
Kleber Mota
  • 8,521
  • 31
  • 94
  • 188
1
vote
1 answer

How to store Google Auth Credentials object in Django?

I'm trying integrate Google Tag Manager into my project. In official document, Google suggests oauth2client library. Unfortunately, this library deprecated. I used google_auth_oauthlib. I can get token and send request to Google Tag Manager API with…
1
vote
1 answer

Vorto-Dashboard not showing device data

I am trying to run Vorto-dashboard on my Raspberry pi to show temperature sensor data. I created an info model, integrated the device, sent the data with a python script. I managed to run the dashboard as mentioned in the tutorials but the problem…