google-oauth2

OAuth2 support through library returns The state token is invalid or has expired. Please try again

假如想象 提交于 2020-01-15 15:26:34
问题 I have spreadsheets that need to be converted to PDF by various users in my organisation. In order to do that I am trying to use OAuth2 (https://github.com/googlesamples/apps-script-oauth2). When I am using it in a main spreadsheet embedded script it works. However I am trying to move the OAuth2 code to a separate library as there will be many spreadsheets that will need the same functionality. When I am using this library I am getting the message "The state token is invalid or has expired.

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,

Incremental combined authorization with Google SignIn for Server-Side Apps

独自空忆成欢 提交于 2020-01-12 06:14:29
问题 When login with Server-Side flow, or ask authorization for additional scopes, with auth2.grantOfflineAccess , the result access/refresh token is not getting combined with previous authorized scopes, overriding the previous ones. Even passing the param to js calls, e.g. auth2.grantOfflineAccess({'include_granted_scopes' : 'true', ...}) , the param include_granted_scopes=true is NOT added to the generated URL. When I manually append the param &include_granted_scopes=true to the generated url on

Google Email Settings api using OAuth 2.0 service account in java

半城伤御伤魂 提交于 2020-01-06 14:55:17
问题 I want to use Google Email Settings api using OAuth2.0 service account authentication method in Java, however I am unable to find any useful client classes from Google or sample examples about how to do this. I have had a look at Directory apis which are very useful for user or group related operations. Is there any equivalent for Email Settings api? 回答1: You can still use the old library AppsForYourDomainClient.jar with Service Accounts. You need to override the method were the user/password

Getting fingerprint for Android keystore certificate on Mac

故事扮演 提交于 2020-01-06 04:46:48
问题 I'm following Google's tutorial on how to set up OAuth 2.0. The documentation asks me to find the debug certificate fingerprint with the following command in the terminal: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore -list -v This doesn't work, I get the following error: keytool error: java.lang.Exception: Only one command is allowed: both -exportcert and -list were specified. What's the correct command on a Mac? 回答1: The command provided in the tutorial

Django social auth error logging in with two email accounts

孤街醉人 提交于 2020-01-05 04:26:12
问题 My application must be accessed through an account like user@mydomain.com (Google managed email account) First time I launch my application I can log in normally using that account. The problem starts when I log out (django log out) and try to login with my Gmail account (This is not allowed because of my email verification pipeline) The first account is my user@mydomain.com and the second is my user@gmail.com account I have a pipeline to verify if the user email belongs to my domain Clicking

Prompt user to enter password - Google OpenID Connect

假如想象 提交于 2020-01-05 03:09:11
问题 We are trying to use Google's OpenID Connect for a business web app but are concerned that the user will leave the app open and an unauthorized user will sign-in because the user is still signed into Google so OpenID Connect just let's them right in. We've tried using max_auth_age=0 parameter. This has been replaced by max_age in OpenID Connect. I do see that Google App's control panel at admin.google.com does usually re-prompt the user for a password while any other login won't. But looking

“Accounts failed to link” error happens when I try to authorize Google Assistant at my Web service

偶尔善良 提交于 2020-01-05 02:34:52
问题 First, I'd like to mention that problems like this had been discussed before in the topics like: How to authenticate user with just a Google account on Actions on Google? But I could not find any information at all related to ways of linking Google Assistant app with my own web server. Problem: GET https://oauth-redirect.googleusercontent.com/r/my-google-assistant-app#access_token=ACCESS_TOKEN&token_type=bearer&state=STATE always returns "Account field to link" error A Way to Reproduce: I

TypeScript bindings for google web signin

人盡茶涼 提交于 2020-01-03 17:51:32
问题 I'm building an angular2/typescript app. I see that google put out platform.js which gives access to the gapi var as shown here on the google signin for websites. That works great, but I am having a lot of trouble getting that into typescript. TS relies on .d.ts files to import javascript. Are there any typescript bindings for the new gapi that google put out? There is this version of gapi from DefinitelyTyped/gapi, but it is outdated. I've considered writing my own typings definition for the

Gmail (for business) API doesn't allow to send email from Alias?

时光怂恿深爱的人放手 提交于 2020-01-03 15:35:37
问题 I want to email my customers using different "roles" (e.g. info@ , customer-support@, tech-support@, no-reply@). I've tried 2 approaches: Multiple "users"/accounts in my Gmail for business application. Single gmail account with multiple aliases. I started by setting up a Service Account with global delegation for my Gmail for Business application. To test that it works, I've set up 2 users: lev@mydomain.com and root@mydomain.com. Indeed, I can successfully send email both from lev@ and root@.