LoginByUsernameData

class LoginByUsernameData[source]

Payload for the self-login flow.

password: str

Your password.

mode: Literal['login'] = 'login'

Discriminator selecting the self-login (vs. impersonation) flow. Defaults server-side; existing clients that omit it keep working.

by: Literal['username'] = 'username'

Discriminator selecting the by-username variant. Optional on the wire; defaults server-side to ‘username’.

confirm_session_termination: bool = False

Set to true to log in even when an active isolated session exists, which will terminate that session.

username: str

The username of the user.

tenant_id: str

The id of the tenant of the user.