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

How to use JSON string as credentials instead of filepath for Python with Google API

I'm looking for a way to build a Google Credentials object and access my Google Sheets spreadsheet without having to reference another file containing my client_secret.json data. This feels like it should be quite easy to do, I just want to be able…
user7812593
0
votes
1 answer

OAuth2 refresh_token logic implementation in spring-security-oauth2

I have successfully implemented the request for new token in OAuth2 for this request: curl --request POST --url https://some-autentication-server.com/token --header 'content-type: content-type' with the body provided as: { …
neaGaze
  • 1,381
  • 22
  • 28
0
votes
1 answer

I am Unable to authenticate CKAN 2.7.2 using oauth2 on http

I am using CKAN 2.7.2 . I have added the following configurations in my development.ini file of ckan ckan.oauth2.authorization_endpoint = https://account.lab.fiware.org/oauth2/authorize ckan.oauth2.token_endpoint =…
timshrok
  • 63
  • 6
0
votes
0 answers

how to implement oauth2.0 client(password grant type) without forcing users to login?

I'm trying to develop OAuth2.0 client application(Resource Owner Password Credentials Authorization Grant)with Spring-Boot1.5.9(restful service) but unlike every sample on the Internet, I don't want to have a Login page for consumers to log in and…
Aliasghar Yaghoobzadeh
  • 1,881
  • 2
  • 12
  • 10
0
votes
1 answer

invalid grant type- oauth 2.0- obtaining token

I have been struggling with the following code for some time. I get the following error: {"error":"invalid_request","error_description":"invalid grant type"}. Some more documentation on the API that I am working on is available…
Rick
  • 35
  • 1
  • 4
0
votes
1 answer

Google Drive API Share document for offline writing/updating

I have created a web app which is making use of Google Drive API/ REST v2 (https://developers.google.com/drive/v2/web/about-sdk) to perform actions such as create/update/rename/delete of documents etc. I am authorizing requests with OAuth 2.0…
0
votes
0 answers

Solved but I'm not sure why: Google Service Account Authentication fails in Ubuntu, works on on Raspberry Pi

I have a python script successfully updating google sheets through Raspberry pi using oauth2client and gspread. When I try and run the same script off my desktop Ubuntu it throws an error 403 Insufficient Permissions. I'm running them both in IDLE2…
HRW
  • 3
  • 4
0
votes
0 answers

I'm getting a 'gspread.exceptions.SpreadsheetNotFound' and not sure why

I've been using GoogleAPIs for a while now but still fairly new to most concepts. I haven't had any issues until now. My google sheet is accessible by the client_email, my client_secret.jsonfile is in the proper directory, and there are no typos in…
0
votes
0 answers

Line-Bot Python: writing users' answer into google sheet ERROR

@app.route("/callback", methods=['POST']) def callback(): signature = request.headers['X-Line-Signature'] body = request.get_data(as_text=True) app.logger.info("Request body: " + body) try: handler.handle(body, signature) …
Lara19
  • 615
  • 1
  • 9
  • 20
0
votes
1 answer

OAuth2 Client should send custom properties

I have implemented Oauth2 client in spring boot public RestTemplate oAuthRestTemplate() { ClientCredentialsResourceDetails resourceDetails = new ClientCredentialsResourceDetails(); resourceDetails.setId("1"); …
prasingh
  • 452
  • 4
  • 18
0
votes
0 answers

OAUTH2: Storage('filename.data') doesn't create file (gspread, python)

I am trying to access a google sheet via python. So far, all the authentication and verification with my Google Account worked. But according to http://www.indjango.com/access-google-sheets-in-python-using-gspread/ storage=Storage('creds.data')…
user3554329
  • 111
  • 2
  • 11
0
votes
0 answers

Authenticating Users with Python OAuth 2

Authenticate Users I am using google bookshelf tutorial. I have done exactly what written there. But I am not able to run the application on my local server. I tried adding GOOGLE_APPLICATION_CREDENTIALS in config.py but no help. Can someone please…
0
votes
1 answer

How to get clean urls?

from flask import Flask, redirect, url_for, session, request, jsonify from flask_oauthlib.client import OAuth app = Flask(__name__) app.config['GOOGLE_ID'] = "12" app.config['GOOGLE_SECRET'] = "A"BC app.debug = True app.secret_key =…
Sonam
  • 77
  • 6
0
votes
3 answers

Issues with Generating Authorization code and User Token using Apache OAuth client 2.0 library in Java

I trying to Automate the User Level Token Creation/Generation process (REST/Authorization Grant Code) using Apache OAuth Client 2.0 Library in Java. And below is the Code that am using which i got from…
0
votes
1 answer

kivy+gspread crashes while trying in an android phone, but works fine in my laptop

I am using gspread and oauth2client in a very simple kivy app, I just want to update one cell in my google sheet. The code works just fine in my PC but when I build the apk file using buildozer and upload it to my android phone it crashes. Is there…