-
Notifications
You must be signed in to change notification settings - Fork 209
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
Is it possible to manipulate Google Workspace domains with domain-wide access via Workload Identity Federation? #63
Comments
This is my Code, where
Using Web Identity FederationIt fails with an error message suggesting the token is not valid one for the workspace.
Using Service Account (Static) KeyThe token acquisition is done via
|
I actually have done that, but both |
Hi @ken5scal - I think you're correct. The Security Token Service (sts.googleapis.com) exchanges temporary credentials for short-lived tokens to access Google Cloud resources. I think this will change in the future, but for now it seems restricted to Google Cloud APIs. |
Alright, I did some digging. It's not currently possible to use Domain-Wide Delegation with the IAM Credentials endpoint. I've filed this feature request internally and will update the documentation in this repo in a bit. The root cause is around being able to set a custom For now, the best I can offer is for you to build and sign your own JWT and use that for authentication:
|
@sethvargo Cool, thanks for an investigation. I will try it out. |
oh, wow. That's one quick development, and I deeply appreciate it. |
As the title suggest, I'm wondering the way to access API in Google Workspace domain via Workload Identity Federation?
The service account is already set up and successfully connected Google Workspace, if request is made with downloaded service account key.
I thought
delegates
input option may be the way to go, but while it gives me the access token, it is not for the Google Workspace API as following message suggests.I'm not even sure it is possible in the first place, so allow me to raise the issue with blank template.
Thanks in advance!
The text was updated successfully, but these errors were encountered: