googleapis / googleapis/google-cloud-node
User Impersonation with Google Service Account
- Vorherrschende Sprache
- TypeScript
- Sterne
- 3.2k
- Forks
- 712
- Ø Merge
- 2 T. 9 Std.
- Gemergte PRs (30 T.)
- 104
Beschreibung
Hi. I'm trying to implement user impersonation with a google service account and have been having problems for a while. After adding the user to be impersonated as the subject, a token gets created but when calling an API like Google Calendar I get a 401 Invalid Credentials error as if the token that was just created has expired or is invalid.
Do you have any samples of user impersonation? I don't see any in the samples or using Node in Google's documentation. Here is their documentation on the subject: https://developers.google.com/identity/protocols/oauth2/service-account#delegate-domain-wide-authority
Thanks a lot.
Beitragsleitfaden
Rechercherichtung
Überprüfe die verlinkte Dokumentation zur Domain-weiten Delegierung von Google-Dienstkonten und die dabei verwendete Node.js-Authentifizierung im Zusammenhang mit dem gemeldeten Google-Calendar-Aufruf. Als erledigt gilt die Aufgabe, wenn ein klares, funktionierendes Node.js-Beispiel für die Identitätsübernahme eines Benutzers vorliegt, das die erforderliche Einrichtung erklärt und die gemeldete Antwort 401 Invalid Credentials vermeidet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- google-cloud, nodejs, typescript
- Bereich
- api, authentication, cloud
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100