Questions tagged [google-auth-library-nodejs]
DONTUSE [Google-api-nodejs-client](https://stackoverflow.com/questions/tagged/google-api-nodejs-client)
32
questions
0
votes
0
answers
24
views
Why am i getting error redirect url mismatch when trying to login with social media?
I tryied to develop social media login with google and facebook for my web app.
App developed in nestjs, deployed with nginx.
Before deployment i tested my app at localhost, so at google console and ...
0
votes
0
answers
10
views
Google auth library payload types in typescript?
I am new in typescript. I use google auth library many time in javascript. But I am facing problem when I am trying to use it in my typescript project. Here I am using common js module (Nestjs)
Here ...
0
votes
0
answers
112
views
Sign in with google "The verifyIdToken method requires an ID Token"
I'm using the Sign in With Google button for authentication, as described on this site: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid
The frontend code looks like this:
...
0
votes
0
answers
23
views
Why are passportjs' req methods not working and flagged as 'not a function'?
the req.isAuthenticated an req.logout seems not to be working and flagged as 'not a function' in my project. here's the code for the project. my verify function seems not to be working as expected.
i'...
0
votes
0
answers
16
views
How do I know that I need to refresh the refresh token?
I'm using the google nodejs calendar plugin to allow doctors to connect with patients and set up appointments.
I am using the following code
const defer = Q.defer();
oauth2Client....
0
votes
0
answers
83
views
Using domain-wide delegation with an attached service account in GCP
I would like to use domain-wide delegation with Google Cloud Function's attached service accounts (aka function identity). I'm using the Google Auth Client library for Node.js.
The best practices for ...
2
votes
0
answers
133
views
google-auth-library has missing dependencies when installed
I am trying to use google-auth-library with a react app but am getting various errors which seem to indicate missing dependencies. The errors are all in a format similar to this:
Module not found: ...
1
vote
2
answers
612
views
How to get a REFRESH_TOKEN with react-google-login
I am using react-google-login plugin for React which provides me a Google oAUth Sign-in / Log-in component for React.
This is my component:
const LogIn = ({ artist_id }) => {
const ...
1
vote
1
answer
502
views
How to get first name and profile picture from id token google sign in
so I'm making the integration with google sign in from a web-site, so basically the flow here is:
google sign in -> get the token id and send to an auth rest api -> rest api get the user Name, ...
1
vote
1
answer
394
views
bigquery authenticating with service account from text\string and not file path
I am using
this nodejs bigquery client
I have the service account json in string\text, I want to avoid to write it to temporary file due to security reasons.
Is there an option to do new BigQuery() ...
0
votes
1
answer
114
views
Unable to save login session in Vue
I have a login page that I can login via google, and when I login I get the parameters of the user. The problem is when I refresh the page the parameters are not saved.
This is my code:
export default ...
1
vote
1
answer
266
views
Sometimes failing to retrieve Application Default Credentials on GKE Autopilot in googleapis auth library
Some pods in my GKE Autopilot cluster aren't able to grab the Application Default Credentials to call other GCP services.
I will apply a new deployment, and 1 or 2 out of the 3 pods won't be able to ...
0
votes
0
answers
69
views
Issue with verifying the integrity of the ID token
If you use Google Sign-In with an app or site that communicates with a
backend server, you might need to identify the currently signed-in
user on the server. To do so securely, after a user ...
0
votes
1
answer
256
views
@hapi/boom not returning correct error, instead "500 : Internal Server Error"
@hapi/boom is not returning correct error as thrown in code.
Here is the code sample:
controller.ts
async (request: IRequest, h: IResponse) => {
.... // some logic
const userInfo = await verify(...
3
votes
1
answer
403
views
Google Search Console API: How do I Solve "User does not have sufficient permission for site"? (When User Has Permissions)
I'm trying to use Google's Search Console API via their Node package, and my code looks like the following:
const auth = new GoogleAuth({
scopes: 'https://www.googleapis.com/auth/webmasters.readonly'...
0
votes
1
answer
64
views
Can one batch requests with google-auth-library?
The way I have been using the client thus far has been like
client = new OAuth2Client(
process.env.GOOGLE_CLIENT_ID,
process.env.GOOGLE_CLIENT_SECRET,
"http://...
1
vote
0
answers
196
views
Google API Authentication: are there alternatives to service account keys?
I'm seeking your advice to piece together a mechanism that would facilitate authentication to Dialogflow ES and CX to allow running experiments on multiple agents (projects) from our workbench ...
0
votes
1
answer
939
views
Google My Business: How to generate access token without user interaction
I want to use a Google My Business API to search and manage the businesses of our clients using my organization account detail.
I want to use API as an Agency as I want to manage our clients' ...
0
votes
2
answers
1k
views
Dependency resolution errors with firebase flutter app
I updated firebase admin for my firebase functions and also grpc when I tried to build my app it gave this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ...
5
votes
2
answers
2k
views
TypeError: Cannot read property 'redirect_uris' of undefined
I want to write an app that can process some of my gmail emails that are labeled a certain way.
The example code here gave me a starting point for my code (which I've rewritten using promises instead ...
1
vote
2
answers
572
views
Domain-wide delegation using default credentials in Google Cloud Run
I'm using a custom service account (using --service-account parameter in the deploy command). That service account has domain-wide delegation enabled and it's installed in the G Apps Admin panel.
I ...
0
votes
0
answers
297
views
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 ...
0
votes
1
answer
498
views
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 = {...
0
votes
1
answer
147
views
Server to server OAuth
I want to create google spreadsheet everyday automatically from server side.
Google spreadsheet requires OAuth to Create, edit, delete spreadsheet. To get OAuth access token we have to manually signin ...
-1
votes
2
answers
1k
views
What's the correct format of private_key when using it as an environment variable?
I am trying to use private_key for some GCP service nodejs client libraries, e.g. @google-cloud/pubsub, @google-cloud/trace-agent
I got private_key from service account credential json file like this:...
3
votes
0
answers
1k
views
How to authenticate to Cloud Function using a node.js client
I have a node.js application running in GKE that needs to be able to make a server-to-server call to a Cloud Function that has permission configured to only allow the service account configured on the ...
1
vote
2
answers
2k
views
generateEmailVerificationLink and other Firebase Passing State in Email Actions
So I am working closely with mobile dev team to generate the proper email when the user signs up, resets the pw etc.
With this piece of code that I pasted below and after all the whitelisting & ...
0
votes
1
answer
270
views
Error when generating a token in a js chrome extension when trying to verify it on a backend nodejs server
I am trying to generate a token in a chrome extension and then use it to verify requests to the backend server. I have been successful at generating a token in the front end but when I send it to the ...
1
vote
1
answer
789
views
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 ...
0
votes
1
answer
155
views
google auth library node js: unpacking contents of token
Some google service is sending the program an Authorisation JWT token in the header of a request. Using the Google Auth Library (https://github.com/googleapis/google-auth-library-nodejs), how can I ...
2
votes
0
answers
469
views
How to send binary data in Gaxios request object with Oauth2Client in google-auth-library-nodejs
I am attempting to upload photos to an authenticated account with google-auth-library-nodejs, mostly following the example here. I have successfully authenticated the client with OAuth2Client and am ...
3
votes
0
answers
316
views
How does google sign-in for Android application work?
This is my understanding about auth flow for a web application;
This is recommended for mobile application, as per RFC 8252
When I go to Google developers console > Create Credentials > OAuth ...