Questions tagged [google-auth-library]

81 questions
1
vote
2 answers

Python - Google OAuth generate token from authorization code

I have an python google cloud function which receives a OAuth authorization code as an argument. I want to exchange this code for a token which can be used to authenticate a service object. The code is generated externally and passed to this…
1
vote
0 answers

403 "Insufficient authentication scopes" with Google Sheets API and Service Account

I can't for the life of me figure out why this isn't working. I feel like I've done everything comparable to what's done in this tutorial, but it's not working. I have done the following: Created a project with the Google Sheets API…
mightimaus
  • 937
  • 2
  • 14
  • 26
1
vote
1 answer

Trouble Running API from Flask Using Apache and Mod-WSGI

I'm working on a Flask app which is hosted on an Ubuntu 16.04 server running Apache. The app utilizes Google Earth Engine (GEE). GEE stores tokens in and loads tokens from ~/.config/earthengine/credentials by default. While this does not pose any…
LIAM M
  • 23
  • 4
1
vote
1 answer

Google IAP using Node certificate has expired error?

I have a node server which needs to connect to an IAP (Identity Aware Proxy) protected API endpoint. The below example from Google seems to be fine expect for the certificate has expired error. I believe I simply need to send rejectUnauthorized:…
1
vote
0 answers

Google Indexing API test environment?

I'm implementing the Google Indexing API for some job posts, and I have it working in "production" (sending url's that are preceded with my public domain i.e. "jobs.myproduction.com") but I can't figure out how to test it in any QA or integration…
Mike
  • 1,246
  • 3
  • 20
  • 34
0
votes
0 answers

How do I secure a cloud function?

I have written a cloud function which adds some data into firestore using nodejs. In order to secure this function, I have changed the permission of this cloud function from allUsers to a service account. I would call this function from console side…
0
votes
0 answers

Phone number not received in Firebase google login

I have created following function for login with google account in angular app using Firebase,I am able to login and get user data such as email, name,picture etc but i am not able to get phone number even though i have added phonenumbers scope in…
0
votes
1 answer

gcloud auth application-default login runs into Access blocked error

Trying to execute gcloud auth application-default login yields one of these errors: Access blocked: Google Auth Library's request is invalid or Access blocked: Authorization Error
vpgcloud
  • 1,294
  • 2
  • 10
  • 19
0
votes
0 answers

google-auth-library JWT node.js length octect is too long at: (shallow)

I'm trying to authenticate on Google but I get an error: length octect is too long at: (shallow) This is my code: I use this version in my package.json: "google-auth-library": "^8.9.0", import { JWT } from 'google-auth-library'; const key =…
0
votes
1 answer

Google OAuth Login Android "Access blocked" error 403 access_denied to some users

I've integrated Google SIgn-In library into my Android APP (which is already in production) and 95% of the users can login without any problem, however, there is a small number of users who reports that when they try to login within the APP, this…
0
votes
0 answers

I want to access the calendar through my application using google api?

I want to access the calendar through my application using google api. I'm stuck at the last step. When I want it to be integrated with my gmail account in my application, an address like this is…
0
votes
0 answers

Emails Sent Using InstalledAppFlow on VPS Not Delivered to Outlook

I am a newbie Python developer. I am using Google's InstalledAppFlow to send emails to addresses listed in an input.txt file. The code works fine on my local PC, and I am able to receive emails on Outlook. However, when I run the code on a VPS,…
0
votes
0 answers

Getting redirected to /login instead of /secrets after successful Google authentication in Node.js app

I'm working on a Node.js application that uses Google authentication via OAuth2. After successfully authenticating with Google, the user is redirected to /login instead of the expected /secrets page. However, I noticed that if I click on the address…
PrathamJ
  • 162
  • 12
0
votes
0 answers

I'm trying to fetch campaigns from my Google Ads account using the Google Ads API. I'm using the google-auth-library and make the API request

const { OAuth2Client } = require('google-auth-library'); const request = require('request'); const API_VERSION = 'v13'; const customer_id = '1234567890'; const developer_token = 'my-developer-token'; const access_token = 'my-access-token'; const…
0
votes
0 answers

google Authentication with vue3.js

Details : "You have created a new client application that uses libraries for user authentication or authorization that is deprecated. New clients must use the new libraries instead. See the Migration Guide for more…