google-authentication

Error 400: invalid_scope “https://www.googleapis.com/auth/chat.bot”

扶醉桌前 提交于 2020-08-24 07:43:30
问题 The documentation for the new google hangouts chat says that you need to authorize the scope https://www.googleapis.com/auth/chat.bot to do pretty much anything. Here's the error: While generating an authentication URL using their OAuth2 client I get the message that the scope is invalid. I don't have that problem if I use https://www.googleapis.com/auth/chat or some other scope like the one for google plus. When I try to google things on in the API Explorer no combination of the URL or parts

Pass google default application credentials in local docker run

孤街浪徒 提交于 2020-08-24 05:36:41
问题 Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default application credentials Code running within docker image on the GCE instance also correctly handles the default application credentials The problem is with "docker run" on my machine. Code running in the docker container do not use host default

Pass google default application credentials in local docker run

落爺英雄遲暮 提交于 2020-08-24 05:36:08
问题 Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default application credentials Code running within docker image on the GCE instance also correctly handles the default application credentials The problem is with "docker run" on my machine. Code running in the docker container do not use host default

Pass google default application credentials in local docker run

╄→尐↘猪︶ㄣ 提交于 2020-08-24 05:35:06
问题 Is there a way of passing my local google default application credentials (https://developers.google.com/identity/protocols/application-default-credentials) via docker run? My usecase: Code running locally on my machine correctly handles default application credentials Code running within docker image on the GCE instance also correctly handles the default application credentials The problem is with "docker run" on my machine. Code running in the docker container do not use host default

Google Cloud API PHP Client Authentication using Service Account

一世执手 提交于 2020-07-23 07:51:05
问题 I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't want to make authentication by using the GOOGLE_DEFAULT_CREDENTIALS environment variable, I want to use service account authentication. Here's what I have tried: require 'vendor/autoload.php'; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud

Google Cloud API PHP Client Authentication using Service Account

别来无恙 提交于 2020-07-23 07:50:07
问题 I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't want to make authentication by using the GOOGLE_DEFAULT_CREDENTIALS environment variable, I want to use service account authentication. Here's what I have tried: require 'vendor/autoload.php'; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud

Google Cloud API PHP Client Authentication using Service Account

折月煮酒 提交于 2020-07-23 07:49:34
问题 I'm working with a project using PHP and need to implement Google Cloud APIs using PHP Client library, but the authentication does not seem to be working for me. I have created a service account and granted the project owner permissions and I don't want to make authentication by using the GOOGLE_DEFAULT_CREDENTIALS environment variable, I want to use service account authentication. Here's what I have tried: require 'vendor/autoload.php'; use Google\Cloud\Core\ServiceBuilder; use Google\Cloud