Questions tagged [google-auth-library]

81 questions
0
votes
0 answers

Google Play Games - Games.API is not available on this device

I use my own game engine for multiple apps. The following code works on some apps with newer Google Play setups. But on an old app I get now an exception when I try to show the leaderboard or achievement intent. But the same app works on the second…
0
votes
1 answer

Docker container not using service account credentials provided in json

I am trying to dockerize an app which makes an api call to bigquery for data, I have provided the credentials .json(trying to authenticate via oauth-service account) but what I am facing is when I run the container my app runs but it asks for…
0
votes
1 answer

Access Cloud Function via HTTP from ruby client, using google auth gem

I'm trying to use the ruby googleauth gem to authenticate a service account to make an HTTP call to a Cloud Function, without success. Test code: require 'googleauth' class TestService include HTTParty format :json debug_output $stdout def…
0
votes
0 answers

How to trigger logout from my google vue component

If user is login with google implement in vue component, how is it possible to trigger logout in the same component from the outside
0
votes
0 answers

Migrating between machines a google generated API token

I'm trying to upload a CSV file to google sheets in python (hopefully to the same sheet and different worksheets every time). I went over all the tutorials and i know that i need to : Authenticate in google to generate an API key which is stored in…
0
votes
1 answer

Service account with google cloud not working

I am trying to communicate with google cloud and the service APIs by creating a service account from my local machine. i am on Mac OS I am following this article https://cloud.google.com/docs/authentication/production I have set the…
saurav
  • 5,388
  • 10
  • 56
  • 101
0
votes
1 answer

Problems connecting Service Account to Admob API with Google-Auth-Library

I've been trying to connect to Admob API from an AWS Lambda to extract some values from reports automatically from time to time. I've successfully got google-auth-library-nodejs to a layer and I am trying to use it to connect to Admob API. I've made…
0
votes
0 answers

GCP - Cloud Function Domain Wide Delegation using Application Default Credential (no -jwt)

I'm trying to create a cloud function, NodeJS based, that use domain wide delegation access to consume the API method gmail.users.settings.delegates.list. I looking for a solution that does not use the service account JSON key, i want to use default…
0
votes
1 answer

How to auth with google-auth-library and firebase-admin?

I am trying to use firebase-admin and found some inconsistency. I am trying to write some auth code with google-auth-library and firebase-admin and then got stuck on where to get client_id, client_secret. I feel it is something I can get from admin…
0
votes
1 answer

Error: User is not authorized while creating GCP project using service account

I am trying to create GCP project programmatically using Google API. Here is the sample code: const {JWT} = require('google-auth-library') async function main (keyFile = {PATH_TO_CREDENTIAL_FILE}) { const keys = require(keyFile) const…
0
votes
1 answer

Programmatic authentication using Cloud Build service account

During build executed by Cloud Build I need to authenticate my custom Java code to use Google Cloud Storage API. The code uses Cloud Storage JSON API client. I would like to use Cloud Build service account for authentication, but it's not clear how…
0
votes
1 answer

oauth2client is now deprecated

In the Python code for requesting data from Google Analytics ( https://developers.google.com/analytics/devguides/reporting/core/v4/quickstart/service-py ) via an API, oauth2client is being used. The code was last time updated in July 2018 and until…
0
votes
1 answer

How to fix 'Program type already present' in gradle

I'm trying to add "com.google.android.gms:play-services-auth:15.0.1" to my project, in dependencies node, and i'm getting an error when i'm running the project, the error is: Error: Program type already present:…
tuber
  • 1
  • 1
0
votes
1 answer

Google API renaming imported variable yields error

I am working on authorizing a JWT token using the googleapis node package. I am following the example from this link: Here If I change the variable name of the imported package it will yield an error. Why does example 1 work but example 2 yields…
lukechambers91
  • 691
  • 1
  • 6
  • 21
0
votes
1 answer

googleAuth is not a constructor, google-api version problem

Following this guide to manipulate google spreadsheets - http://voidcanvas.com/node-js-googleapis-v4-spreadsheet/ I have been getting "googleAuth is not a constructor" error. Searching the web I found that the new version of google-auth-library has…