Skip to content

[Question]: account impersonation auth flow #212

@ken-scarf

Description

@ken-scarf

How do I use this library to make impersonated requests? Here's an example of what I want to do

gcloud storage ls gs://[BUCKET_NAME] --impersonate-service-account=[SERVICE_ACCOUNT_EMAIL]

From what I've gathered so far I need to generate a token with Gogol.IAMCredentials.Projects.ServiceAccounts.GenerateAccessToken.newIAMCredentialsProjectsServiceAccountsGenerateAccessToken. I assume I need to construct a Credential using the access token I got. I tried constructing it authToAuthorizedUser but it fails because it requires a refresh token. Any help would be appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions