generated from cisagov/ScubaGear
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
Prerequisites
- This issue has an informative and human-readable title.
💡 Summary
Add option to allow users to directly provide a token via the CLI instead of a path to a credentials file.
Motivation and context
Will be useful for automation.
Implementation notes
Example of authentication via a token string:
def __init__(self, access_token: str, svc_account_email: str = None):
self._svc_account_email = svc_account_email
self._token = Credentials(token=access_token, scopes=self._scopes)
...
Acceptance criteria
- Ability to pass token via CLI arg is added