djc / gcp_auth

Minimal authentication library for Google Cloud Platform (GCP)
Other
63 stars 38 forks source link

Supporting impersonated service count (builds on #76) #77

Open msdrigg opened 1 year ago

msdrigg commented 1 year ago

This PR adds service account impersonation. It uses a generic Box<dyn ServiceAccount> to get the source token and then uses that token to refresh the impersonated account from the service_account_impersonation_url.

msdrigg commented 1 year ago

Tested this PR with real world keys