google-oauth2

Failed to request access token for Fusion Tables API with Google Service Account

好久不见. 提交于 2019-12-12 03:18:44
问题 I have been successfully using Google API (via HTTP/REST, as well as using the .NET client library) with a Google Service Account to access the files in Google Drive. Recently, I am exploring the Fusion Tables. I am able to use the API with user authorization via a web application. However, when I try to access it using Google Service Account under the same project, it failed with the below error, whenever I have https://www.googleapis.com/auth/fusiontables in the scope: https:// www

Google signin not working on release version of android

瘦欲@ 提交于 2019-12-12 01:54:18
问题 I am getting problem for my current app. My OAuth2.0 the SHA1 is correct and generated from keystore file of release version. My problem is I am receiving resultCode =0 everytime on onActivityResult. I print out value of intent and got below: googleSignInStatus=Status{statusCode=INTERNAL_ERROR, resolution=null} But, if I run it on debug mode login working perfectly and for this case value of intent is: googleSignInAccount=com.google.android.gms.auth.api.signin.GoogleSignInAccount@31976389] Do

Accessing Google oAuth giving invalid grant_type (Bad request)

萝らか妹 提交于 2019-12-12 00:26:52
问题 I searched a lot in SO, skim through many questions regarding the same error, applied whatever they suggested, but nothing turned out. Hence writing here. I am learning how to make a call to Google API (say Google Calendar API). I am going through the google developers tutorial from https://developers.google.com/identity/protocols/OAuth2ServiceAccount So I have created a service account in the google, created credentials (I want to invoke Google API from my own application). After then I

Upload video to YouTube with a service account on behalf of a user by server side data API V3

自作多情 提交于 2019-12-11 18:07:59
问题 I am trying to upload a video to YouTube account on behalf of 'user@gmail.com' by YouTube data API V3 and I receive 'access_denied' error. According to google documentation: I opened a service account using a google administrator account 'admin@gmail.com' and completed the steps in : www.developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority. I logged in as 'user@gmail.com' and gave permissions to 'admin@gmail.com' service account I created in step 1. (in www

How to handle CORS in a service account call to Google oAuth?

元气小坏坏 提交于 2019-12-11 16:44:18
问题 I access a Google calendar using a service account. This means that the owner of the calendar will not be prompted for his authorization. This works fine in Python, where I make a requests call to https://accounts.google.com/o/oauth2/token with a specific body. This gets me back a token I can use later. I now need to have an application running in a standalone browser (Chrome - without user interaction) and tried to directly port this call as fetch('https://accounts.google.com/o/oauth2/token'

Google Drive API authentication, JavaScript

左心房为你撑大大i 提交于 2019-12-11 15:04:31
问题 I am running on a virtual host (as well as a Python SimpleHTTPServer) and I have been following Google's instructions, but I can't get the Google drive authorization to pop up on page refresh. https://developers.google.com/drive/web/auth/web-client Ive placed the first block of code in my index.html file, and Ive placed the following 2 snippets in <script> tags within <body> . I filled in the CLIENT_ID with the ID I created in the Google developer console...what am I missing? <html> <head>

Google YouTube API (v3): how to access my unlisted/private videos from my server?

耗尽温柔 提交于 2019-12-11 13:23:29
问题 I've been experimenting with Google YouTube API (v3). Until today, I used it with public videos. Now I have the requirement to work with unlisted videos (for example, retrieve the list of my uploaded videos on a channel). I see in the docs I should use google-api-php-client libraries. This library requires an OAuth 2.0 client ID. This library requires interactive authorization from client (it's oauth2, of course. Actually in the code samples is always included an html section. Now the

Firestore error Request had insufficient authentication scopes

六眼飞鱼酱① 提交于 2019-12-11 07:47:02
问题 I'm trying to use Google Firestore for the first time, authenticating with google api authentication. The first thing I'm doing is populating the database with a StartBatch with several Set methods, when I await the batch Task , it gives me this error: Error: Status(StatusCode=PermissionDenied, Detail="Request had insufficient authentication scopes.") ; I've found little about authenticating with google to connect to firestore. First I authenticate with this method using the secret provided

Google Admin SDK - Service account can't access resource

試著忘記壹切 提交于 2019-12-11 06:08:39
问题 I've created Service Account client via console.developers.google.com. Generated keys, .p12 cert, enabled DwD, and so ... Then I've continued as describer in Admin API references. (HTTP/REST version). That included asingning scopes to these clients id at Google Admin -> Security -> Advancet Settings. Current admin security config state After I succesfully exchanged code for access token and made request for list of users under my domain i got this response. { "error": { "errors": [ { "domain"

Nodemailer whit GMail SMTP OAuth2 autentication is getting me 'Invalid status code 401'

随声附和 提交于 2019-12-11 05:49:06
问题 I'm trying to make a simple mail sender using Nodemailer 3, the GMail API whit OAuth2 autentication. Here's my script: var serverConfig = { gmail: { client_user : 'my@email.com', client_id : '349...myClientId', secret : 'mysecret..123jd123', refresh_token : 'x/xxxxxxxxxxxxxx-reZuEMeSuJaSERmCVY', access_token : 'xxxxxxxxxxxxxxxxx', expires: '3599' } } // 3LO authentication https://nodemailer.com/smtp/oauth2/#example-3 var transporter = nodemailer.createTransport({ service: 'gmail', auth: {