utils.rcclient.libs.auth

Module Contents

Classes

KeyProvider

JWTAuthProvider

Attributes

logger

utils.rcclient.libs.auth.logger
exception utils.rcclient.libs.auth.UserNotAuthorized(msg)

Bases: Exception

Common base class for all non-exit exceptions.

exception utils.rcclient.libs.auth.LoginError(msg)

Bases: Exception

Common base class for all non-exit exceptions.

class utils.rcclient.libs.auth.KeyProvider

Bases: object

__cache
get_public_key(auth_key)
class utils.rcclient.libs.auth.JWTAuthProvider

Bases: object

__auth_env_key = 'RC_AUTH_PUBLIC_KEY'
authenticate(token: str, audience: str)
authorize(user_tenant_id, incoming_tenant_id)