google-oauth

oauth2client.client.HttpAccessTokenRefreshError: invalid_grant: Invalid JWT

╄→尐↘猪︶ㄣ 提交于 2020-01-15 03:12:54
问题 I am using Google Cloud Vision API on my Raspberry PI. It works fine when I use it on my home (on which the cloud account was first accessed) network but if I access the API from a different network it raises a token refresh error. I have synchronized the time using NTP but is of no help. Detailed error: oauth2client.client.HttpAccessTokenRefreshError: invalid_grant: Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values and

Google-oauth inside Jupyter Notebook

假装没事ソ 提交于 2020-01-14 09:21:27
问题 I am using Google oauth2client and the code from sample is: flags = argparser.parse_args() credentials = run_flow(flow, storage, flags) All works in Python interactive or IDE but if I am trying to use the code from Jupiter Notebook I got an exception. Inside Jupiter Noteboo I am trying simple: from oauth2client.tools import argparser argparser.parse_args() and got: usage: __main__.py [--auth_host_name AUTH_HOST_NAME] [--noauth_local_webserver] [--auth_host_port [AUTH_HOST_PORT [AUTH_HOST_PORT

403, If-Match or If-None-Match header or entry etag attribute required

故事扮演 提交于 2020-01-14 05:07:48
问题 Background Info I am Using python gdata spreadsheet-api with OAuth2.0 and certificate credentials to access data in a google apps domain I am trying to insert a row into a spreadsheet using spreadSheetClient = SpreadsheetsClient() # Certificate Authentication .... spreadSheetClient.add_list_entry(list_entry=list_entry, spreadsheet_key=spreadSheetKey, worksheet_id=workSheetId) where list_entry is an instance of gdata.spreadsheets.data.ListEntry and spreadsheetKey and worksheetId are instances

Ember-Simple-Auth with Torii access user info

只愿长相守 提交于 2020-01-14 03:46:07
问题 I've been working all week to get authentication working. I have gotten it working with Ember-CLI Ember-Simple-Auth Torii google-oauth2 provider However I have proven unsuccessful in getting the users information from google. I have tried creating a torii-adapter as stated in their documentation but it doesn't appear to be called // app/torii-adapters/application.js export default Ember.Object.extend({ open: function(authorization){ console.log('authorization from adapter', authorization); }

WPF application authentication with Google

我怕爱的太早我们不能终老 提交于 2020-01-13 09:30:09
问题 I have found many different solutions with OAuth and either with some libraries or with pure requests (https://github.com/googlesamples/oauth-apps-for-windows). However, none of the solutions looks like the one that I really need. Currently, my application uses its own database for users to log in using WCF service request (with username and password). However, all users have their domain e-mail created with Google accounts, so I want to add another button "Sign In with Google", which will

Google Calendar - Permission to Access

喜夏-厌秋 提交于 2020-01-13 08:14:10
问题 Is it possible for me to create an application that can send our requests to access to users' Google Calendar so that I can see the events in there and be able to add, edit, and delete events? I do not want the users to log into my website to enable this access. Rather, I want to be able to send this request, perhaps via email. Alternatively, perhaps they could log in the web app and authorize access themselves somehow. 回答1: One option would be to e-mail the user a link to the OAuth 2.0

how to remove openid since google auth is depreciated?

孤街醉人 提交于 2020-01-13 05:59:20
问题 As per the latest circular, google plus oauth is depreciated. As per my understanding, i should be concerned only if i am using plus.me in my code. My code: google = oauth.remote_app( 'google', consumer_key=app.config.get('GOOGLE_ID'), consumer_secret=app.config.get('GOOGLE_SECRET'), request_token_params={ 'scope': ['https://www.googleapis.com/auth/userinfo.email'], 'access_type': 'offline', 'approval_prompt':'force' }, base_url='https://www.googleapis.com/oauth2/v1/', request_token_url=None,

Google OAuth2 Refresh_token expires when Access_token does

寵の児 提交于 2020-01-13 02:53:50
问题 According to https://groups.google.com/forum/#!forum/oauth2-dev discussion is now here. No matter how much reading I do, I can't get my head around how google OAuth2 tokens work. Reading the docs and many other places suggest that a refresh_token doesn't expire, and is used once the access_token expires. See the official docs at https://developers.google.com/accounts/docs/OAuth2WebServer#refresh However, in practice it appears to work as describe by Paul (Unable to refresh token after

Google API Python Client - AccessTokenRefreshError

三世轮回 提交于 2020-01-12 10:11:12
问题 def get_code(request): try: user_info_service = get_service(request.user, 'oauth2', 'v2') user_info = user_info_service.userinfo().get().execute() if user_info and user_info.get('id'): request.session['cur_user'] = user_info return redirect('/me') else: raise NoUserIdException() except AccessTokenRefreshError as atrfsh: print atrfsh print traceback.print_tb(sys.exc_info()[2]) except: print "This was the exception..." print sys.exc_info() auth_uri = FLOW.step1_get_authorize_url() print auth

Client-side retrieval of Google Contact pictures

孤街醉人 提交于 2020-01-12 08:05:11
问题 I'm fetching google contacts in a webapp using the Google JavaScript API and I'd like to retrieve their pictures. I'm doing something like this (heavily simplified): var token; // let's admit this is available already function getPhotoUrl(entry, cb) { var link = entry.link.filter(function(link) { return link.type.indexOf("image") === 0; }).shift(); if (!link) return cb(null); var request = new XMLHttpRequest(); request.open("GET", link.href + "?v=3.0&access_token=" + token, true); request