googleapis / googleapis/google-api-nodejs-client

Proper sample for two-legged auth for service account and consume google resources in server side

Open
#2,894 0 comments 1 reaction 0 assignees View on GitHub
samples type: docs
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

Can't find a proper example for using goolge services like calendar by using 2LO auth for service accounts.
Having difficulties authenticating the the app engine client (Showing invalid grant after using this
const auth = new google.auth.GoogleAuth({
scopes: ['https://www.googleapis.com/auth/calender', 'https://www.googleapis.com/auth/calendar.events', 'https://www.googleapis.com/auth/calendar.events.readonly', 'https://www.googleapis.com/auth/calendar.readonly', 'https://www.googleapis.com/auth/calendar.settings.readonly'],
}
auth.

Also when tried to manually create jwt tokens, always getting invalid signature, I feel the documentation for this @ https://developers.google.com/identity/protocols/oauth2/service-account is not clear enough to perform either manually or by using google libraries

Any help would be appreciated, thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.