service-accounts

Google OAuth2 Service Accounts authorization

让人想犯罪 __ 提交于 2019-12-11 04:24:38
问题 I'm trying to perform Google Drive API calls using "Service Accounts" authorization. I'm calling the API, but files.list returns me empty set, meanwhile the drive is not empty. I guess I should specify prn field as well in order to perform call on behalf of the concrete user (I don't really get who is it called for when prn is not specified). The problem is that when I specify prn authorization returns me access_denied error. { "error" : "access_denied" } Documentation says that I should

What domain is Google Cloud Storage expecting in the ACL definitions when inserting an object?

丶灬走出姿态 提交于 2019-12-11 03:42:44
问题 I am using the google storage API to persist and retrieve images from an app deployed on GAE. I successfully retrieve the images but when it comes to persisting I am getting error 400 with this in the details: 400 OK { "code" : 400, "errors" : [ { "domain" : "global", "message" : "Required", "reason" : "required" }], "message" : "Required" } Based on this information I thought I may not need it so I tried without. When I added the appspot URL I'm communicating with google cloud storage from I

How to access contacts API with Service Account

拈花ヽ惹草 提交于 2019-12-11 03:15:58
问题 I am in the process of upgrading my Marketplace applications to support the new marketplace api and OAUTH 2. I have managed to migrate most APIs but am stuck on the contacts api. With the the previous marketplace version we used 2LO and client key/client secret to authenticate across the Google Apps domain. My understanding is that the only way to do this in current version is with Service Accounts and OAuth 2. Based on the V3 calendar API I'm assuming something like this (although the

PermissionDenied: 403 IAM permission 'dialogflow.intents.list'

江枫思渺然 提交于 2019-12-11 02:48:46
问题 I'm trying to get the list of the intents in my Dialogflow agent using Dialogflow's V2 APIs but have been getting the following error: PermissionDenied: 403 IAM permission 'dialogflow.intents.list' on 'projects/xxxx/agent' denied. I adopted the following steps: I created a new agent(with V2 APIs enabled) and a new service account for it. I downloaded the JSON key and set my GOOGLE_APPLICATION_CREDENTIALS variable to its path. Following is my code: import dialogflow_v2 as dialogflow os.environ

Authenticating to Google Cloud Endpoints as iOS app (not user with Google account credentials)

穿精又带淫゛_ 提交于 2019-12-11 02:29:32
问题 One of my iOS apps contacts one of my services using Google Cloud Endpoints and I would like to restrict access to that service to instances of the app. I've followed instructions about adding authorization and have created an iOS client ID that is tied to my app's bundle id and app store id. I've now difficulties understanding this part of the instructions: If your iOS app is making calls to an Endpoint that requires authentication, you must Add a Sign-in Dialog to your iOS client. I do not

Google OAuth2 Service Account HTTP/REST Authentication

十年热恋 提交于 2019-12-10 19:27:05
问题 I am attempting to make a access token request using the documentation found below: https://developers.google.com/identity/protocols/OAuth2ServiceAccount I am leveraging the jsrsasign library to generate my JWT For clarity I am deploying the code to Parse.com cloud code, everything executes fine with exception of the failed response from Google. jsrsasign [http://kjur.github.io/jsrsasign/] https://kjur.github.io/jsrsasign/api/symbols/KJUR.jws.JWS.html#.sign Parse.Cloud.define("testBase",

Which Google APIs can be accessed with service account authorization?

十年热恋 提交于 2019-12-08 17:40:27
问题 I infer from the Google API documentation, that not all of the advertised Google services are available to service accounts. e.g. In the announcement for service accounts, this was part of the text: `Service accounts are currently supported by the following Google developer services: Google Cloud Storage Google Prediction API Google URL Shortener Google OAuth 2.0 Authorization Server Google APIs Console Google APIs Client Libraries for Python, Java, and PHP I understand the first three refer

How to retrieve Google Service Account Access Token .NET

走远了吗. 提交于 2019-12-08 13:34:36
问题 I need to retrieve an access token for a Google service account, then I'll use the token to get the results from Google Analytics. I've already did it in PHP but I'm struggling with .NET, I've used an example from the Google Docs but i'm having some issues. This is the code: private static String ACTIVITY_ID = "1111111"; public static void Test() { Console.WriteLine("Plus API - Service Account"); Console.WriteLine("=========================="); String serviceAccountEmail = "*@developer

C# Google Drive API list of files from my personal drive

 ̄綄美尐妖づ 提交于 2019-12-07 23:14:14
问题 I am trying to connect to my own personal Google Drive account and gather a list of file names. What I have done: Installed all the NuGet packages required Added Google Drive to the API Manager in Google Developers Console Setup a Service Account and downloaded a P12 key for authentication Wrote the following code to call the API: string EMAIL = "myprojectname@appspot.gserviceaccount.com"; string[] SCOPES = { DriveService.Scope.Drive }; StringBuilder sb = new StringBuilder(); X509Certificate2

How authenticate with gcloud credentials an Dialogflow API

陌路散爱 提交于 2019-12-07 22:27:57
问题 I have a Node JS app that make requests to a Dialogflow agent. I actually use a temporally token based request, but how can i change this to do it through google service credentials? (https://cloud.google.com/docs/authentication/getting-started). I have a credencial created (with billing added), and the service_account json file. I would like to use the Dialogflow package in node (https://www.npmjs.com/package/dialogflow) but i don't underestand how to use it with the json file. const