google-auth-library-python-oauthlib
google-auth-library-python-oauthlib copied to clipboard
Ability to read client secrets from an external source like google secret manager
Flow for the client credentials can be instantiated with either 2 methods.
- from_client_secrets_file
- from_client_config
However, we intend to persist client credentials in an external vault like google secret manager and would like to have an instantiation mechanism by passing the secrets as arguments rather than local file or config.
Thank you for your request. IIUC, you would like to
- store client secret in a vault/secret manager
- have your own code to fetch the secret at run time and provide as parameter
- provide clientid, type of client, token_uri and any other info held by client_config as parameters
Is there a reason you cannot create a json yourself with all the info and pass it in to from_client_config?