镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Enable constructing GoogleServiceAccountClient with Credentials.from_service_account_info method #532

Open

Description

@attilatoth86

When initializing a GoogleServiceAccountClient, it expects Service Account JSON key file but there is no way to pass in the key file content as dictionary (e.g. after reading out from a secret store) because the constructor is limited to use the google.oauth2.service_account.Credentials.from_service_account_file()class method. Can this constructor be extended with .from_service_account_info() method, too?

https://google-auth.readthedocs.io/en/master/reference/google.oauth2.service_account.html#google.oauth2.service_account.Credentials.from_service_account_info

Activity

  1. christopherseeley commented on Mar 25, 2024

    @christopherseeley
    Member

    Thanks for the suggestion! In the meantime, you can use any google.oauth2 Credentials object with this library
    https://github.com/googleads/googleads-python-lib/blob/main/googleads/oauth2.py#L215

  2. self-assigned this
    on Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions