utils.rc.client.auth

Module Contents

Classes

AuthClient

Attributes

logger

utils.rc.client.auth.logger
class utils.rc.client.auth.AuthClient
static setToken(email=None, password=None, token=None, tenant_name=None)

It authenticates the user and uses this identity in all future operations. There are many methods to authenticate: 1) pass token as an argument 1) set RC_PYTHON_CLIENT_TOKEN is env variables 1) Provide email and password as arguments 2) Set RC_PYTHON_CLIENT_EMAIL and RC_PYTHON_CLIENT_PASSWORD in environment variables 3) Provide token as argument. Token can be retrieved from the RC UI :param email: :param password: :param token: :param tenant_name:

classmethod __switch_to_tenant(user: utils.rc.dtos.user.User, tenant_name: str) str