Summary
Learn how to contribute to a package locally and add support for the ‘sub’ parameter in Google Analytics Data API for domain-wide delegation in Google Admin.
Question
Does anyone have any good resources for learning how to contribute to a package locally which you also use? I’m not too familiar with it but would like to submit a PR on a source.
The source-google-analytics-data-api (“GA4”) when using Service Account authentication can also support mimicking a domain user when used with domain-wide delegation in Google Admin. The parameter is “sub” (for “subject”) which should be sent alongside the request to generate the bearer token. I’d love to help get this included…
Source: https://developers.google.com/identity/protocols/oauth2/service-account#authorizingrequests
delegated_credentials = credentials.with_subject('<mailto:user@example.org|user@example.org>')
This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want to access the original thread.