Skip to content

UserAuthenticationClient

Bases: ServiceClientWrapper

Wrapper of ServiceClient to handle user authentication, including: - user registration and login - access token caching

__init__

__init__(service_client: ServiceClient)

is_accessible_connection

is_accessible_connection() -> bool

set_token

set_token(access_token: str)

validate_email

validate_email(email: str) -> tuple[bool, str]

set_token_by_registration

set_token_by_registration(
    email: str,
    password: str,
    password_confirm: str,
    validation_link: str,
    additional_info: dict,
) -> tuple[bool, str]

set_token_by_login

set_token_by_login(
    email: str, password: str
) -> tuple[bool, str]

try_reuse_existing_token

try_reuse_existing_token() -> bool | tuple[bool, str]

get_password_policy

get_password_policy()

reset_cache

reset_cache()

retrieve_greeting_messages

retrieve_greeting_messages()

send_reset_password_email

send_reset_password_email(email: str) -> tuple[bool, str]

send_verification_email

send_verification_email(
    access_token: str,
) -> tuple[bool, str]