-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IAM: support STS token source #750
Comments
Thanks for the feature request. We have some work in progress to improve the auth experience, but don't have an ETA on this specific idea. |
This should now be supported by the underlying oauth2 package: https://pkg.go.dev/golang.org/x/oauth2/google#hdr-Workload_Identity_Federation |
|
That package should not need to be exported. Methods like CredentialsFromJSON will now do the right thing if the type is an |
I don't know this repo(google-api-go-client) is the right place of the token source but I think the original feature request means to exchange OIDC token from a string variable or another token source. |
Could you provide some psudocode for how you would envision working with with such an api. I am not quite understanding how the current implementation does not provide enough flexibility for what you are trying to accomplish. |
I have written PoC code. |
When using workload identity federation, one follows the steps described in Accessing resources from an OIDC identity provider:
It would be valuable if the SDK can provide an implementation of
TokenSource
to simplify the step 2. Generally, the newly introducedstsTokenSource
will take aTokenSource
of the token from an external OIDC provider, and exchange/refresh federated access tokens from STS.The text was updated successfully, but these errors were encountered: