yoshidan / google-cloud-rust

Google Cloud Client Libraries for Rust.
MIT License
222 stars 80 forks source link

auth: identity token source #166

Closed gwik closed 1 year ago

gwik commented 1 year ago

Adds a token source to fetch a JWT token from the metadata server for a specific audience.

See:

https://cloud.google.com/run/docs/authenticating/service-to-service#use_the_metadata_server

antoninfin commented 1 year ago

Here's a modified version based on the idtoken go package.

I'll document and test it a little bit.

yoshidan commented 1 year ago

Thanks!