Open brokensound77 opened 1 year ago
SWAT> emulate admin_add_roles_to_users --username test --roles test
gets error
2023-08-11 20:42:10 ERROR Error: Authorized user info was not in the expected format, missing fields client_id, refresh_token, client_secret. (default:shell.py:195)
Looks like refresh_token
is missing from creds??
class OAuthCreds(BaseCreds):
"""Data class for OAuth2.0 application credentials."""
auth_provider_x509_cert_url: str
auth_uri: str
client_id: str
client_secret: str
project_id: str
redirect_uris: list[str]
token_uri: str
refresh_token: str = None
Some additional thoughts here:
The commands for scopes and auth have been removed.
Cred
, simply by usingCred.session()
with scopes as an optional parameter