Skip to content

ajhall/oauth-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cross-project log writing via OAuth sign-in

OAuth project needs:

  • iamcredentials.googleapis.com API enabled
  • No additional scopes added to the OAuth consent screen

Log project needs:

  • Logging API enabled
  • log-writer service account with the roles/logging.logWriter role
  • Grant the roles/iam.serviceAccountTokenCreator role to users on log-writer service account

Make sure to include the https://www.googleapis.com/auth/cloud-platform scope when you sign in.

The user logs in via the OAuth project, then uses their token to call the IAM Credentials API to get a service account token with the https://www.googleapis.com/auth/logging.write scope. This token is used to call the Logging API to write logs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published