You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enable constructing GoogleServiceAccountClient with Credentials.from_service_account_info method #532
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?
Activity
christopherseeley commentedon Mar 25, 2024
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
feat: Add support for creating GoogleServiceAccountClient from servic…