aiogoogle icon indicating copy to clipboard operation
aiogoogle copied to clipboard

Issue with `ServiceAccountCreds` with `universe_domain`

Open a-fellow-human opened this issue 1 year ago • 1 comments

Hello, it appears that ServiceAccountCreds doesn't seem to have an option to add a universe_domain. Importantly, this means that if you run

ServiceAccountCreds(scopes=scopes, **service_account_key)

with a service account key auto-generated by Google, the code will fail with error

TypeError: __init__() got an unexpected keyword argument 'universe_domain'

A simple workaround would be to simply remove the universe_domain line from the JSON key.

Other libraries such as google-auth already implement adding universe_domain.

a-fellow-human avatar Sep 12 '23 12:09 a-fellow-human