google-oauth

Write to a Google spreadsheet from JavaScript using the Public API access (no OAuth)

我只是一个虾纸丫 提交于 2020-01-04 17:21:05
问题 I'd like to allow a user to visit one of my sites, enter some information into a field, and then save that information into a Google Spreadsheet via JavaScript. I don't want the user to login via Google or have to do any special authentication. It's Ok if the spreadsheet needs to be open to public; the data's not sensitive. I don't want to use a Google Form, I want to have full control over the client-side UI. I've been reading through the Google developer docs, but they only make mention to

Unable to get Google OAuth authentication working with React Native and Firebase

假如想象 提交于 2020-01-04 06:17:49
问题 I'm attempting to get Google OAuth working with Firebase and React Native and can't seem to get everything working together. I'm using the NPM package react-native-google-signin to handle the Google OAuth side of things and that is working as expected. I'm running into an issue getting the user authenticated with Firebase however. I've enabled Google Authentication on my Firebase instance according to the instructions in the Web Guide. However, when I try authenticating with the idToken field

can't find developer.gserviceaccount for gmail

点点圈 提交于 2020-01-04 00:05:51
问题 I was reading the google documentation about setting up access to post requests to the google server. Using OAuth 2.0 for Server to Server Applications { "iss":"761326798069-r5mljlln1rd4lrbhg75efgigp36m78j5@developer.gserviceaccount.com", "scope":"https://www.googleapis.com/auth/devstorage.readonly", "aud":"https://www.googleapis.com/oauth2/v3/token", "exp":1328554385, "iat":1328550785 } The iss is the service account name of developer.gserviceaccount.com However, when I created my service

Saving the current GIDGoogleUser instead of signing in on every launch

狂风中的少年 提交于 2020-01-03 06:48:13
问题 I'm using the GIDSignInButton to sign my users into Google. Problem is, I'm not sure how to save the current user so that each user doesn't have to sign in every time they open the app. I've tried using signInSilently() but I get The operation couldn’t be completed. (com.google.GIDSignIn error -4.) every time. That error, in the header file, says this : // Indicates there are no auth tokens in the keychain. This error code will be returned by // signInSilently if the user has never signed in

Is GoogleAuthUtil.getToken() thread safe?

不打扰是莪最后的温柔 提交于 2020-01-03 03:29:19
问题 After I read Verifying Back-End Calls from Android Apps (http://android-developers.blogspot.tw/2013/01/verifying-back-end-calls-from-android.html), I also read Google Play services and OAuth Identity Tools (http://android-developers.blogspot.tw/2012/09/google-play-services-and-oauth-identity.html) and it says "You should call GoogleAuthUtil.getToken() to get a token before each set of GETs or POSTs; it’s smart about caching things appropriately, and also about dealing with token expiry and

Google Contacts API - Accessing Other Users

一曲冷凌霜 提交于 2020-01-03 02:01:48
问题 I am trying to use the Google Contacts API and the Python / GDATA client handlers to access Contacts via OAuth 2.0 for users in the domain. I'm ultimately wanting to create a web service to add contacts for users, but the first step is getting this test working. I can access my own Contacts just fine if I use the default URI. However, when I pass in the email address to construct the URI for another user, I can't seem to access the other user's Contacts. Here is the code that I'm using:

Android Google Drive Rest API: skip consent screen (hardcoded account)

眉间皱痕 提交于 2020-01-02 08:38:52
问题 I was trying to use Google Drive to sync some media files (video/images) and show them in my android app. I've managed to make it all work fine but according to the docs (or at least from a first read) it looks like there must always be a consent screen where the user, after choosing his google account, agrees with the app getting data from his drive. The point is that I'd like to 'hardcode' an account that programatically agrees to that since our app is always going to take the media from

gdata Unknown authorization header - started 12/11/13

僤鯓⒐⒋嵵緔 提交于 2020-01-02 08:25:20
问题 The google calendar sync had been working fine for a long time now suddenly starting yesterday we started getting the following error. I saw that this has happened in the past and google engineers (SRE) had to apply a patch to fix this. com.google.gdata.util.AuthenticationException: Unknown authorization header 回答1: Google Account Authentication APIs ( ClientLogin, AuthSub and OAuth 1.0 ) are deprecated as per deprecation policy. http://googledevelopers.blogspot.com/2012/04/changes-to

Google oauth2 access token expires in 1 hour. I want to make it 1 day

萝らか妹 提交于 2020-01-02 07:51:55
问题 I have created a project with Google OAuth2 credentials for use with Google calendar. However the access toke expires in every 1 hour. Can someone please help me change the expire time to 1 day. I have use this code to access the google calendar events: $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setAccessType('offline');

Google oauth2 access token expires in 1 hour. I want to make it 1 day

纵饮孤独 提交于 2020-01-02 07:51:12
问题 I have created a project with Google OAuth2 credentials for use with Google calendar. However the access toke expires in every 1 hour. Can someone please help me change the expire time to 1 day. I have use this code to access the google calendar events: $client = new Google_Client(); $client->setApplicationName("Client_Library_Examples"); $client->setClientId($client_id); $client->setClientSecret($client_secret); $client->setRedirectUri($redirect_uri); $client->setAccessType('offline');