mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-07-23 05:10:29 -07:00
feat: add auth support for GCP access tokens (#574)
Introduce choice "accesstoken" for auth_kind for modules Introduce optional access_token string param that falls back to GCP_ACCESS_TOKEN env var
This commit is contained in:
parent
86e0cef208
commit
203961b045
173 changed files with 1181 additions and 13 deletions
|
@ -39,6 +39,7 @@ class GcpKmsFilter():
|
|||
'auth_kind': kwargs.get('auth_kind', None),
|
||||
'service_account_file': kwargs.get('service_account_file', None),
|
||||
'service_account_email': kwargs.get('service_account_email', None),
|
||||
'access_token': kwargs.get('access_token', None),
|
||||
}
|
||||
if not params['scopes']:
|
||||
params['scopes'] = ['https://www.googleapis.com/auth/cloudkms']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue