care.emr.resources.mfa.spec module

class TOTPSetupResponse(*, uri: str, secret_key: str)

Bases: BaseModel

uri: str
secret_key: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class TOTPVerifyRequest(*, code: str)

Bases: BaseModel

code: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class TOTPVerifyResponse(*, backup_codes: list[str])

Bases: BaseModel

backup_codes: list[str]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class PasswordVerifyRequest(*, password: str)

Bases: BaseModel

password: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class LoginMethod(*values)

Bases: str, Enum

totp = 'totp'
backup = 'backup'
class MFALoginRequest(*, method: LoginMethod, code: str, temp_token: str)

Bases: BaseModel

method: LoginMethod
code: str
temp_token: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class MFALoginResponse(*, access: str, refresh: str)

Bases: BaseModel

access: str
refresh: str
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].