Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 2.49 KB

TfaSettingsDto.md

File metadata and controls

35 lines (27 loc) · 2.49 KB

TfaSettingsDto

One two-factor authentication method the portal offers, with the portal-wide state of that method.

Properties

Name Type Description Notes
id str Which method this entry describes: sms for a code sent by text message, app for a code from an authenticator application. It is the value PUT api/2.0/settings/tfaapp takes as its type, and no other value ever appears here.
title str The label for the method in the portal language, meant for a button or a radio option. It is not stable enough to branch on - match id for that.
enabled bool Whether this method is the portal's current policy. At most one entry can have it set, and none has it while the portal challenges nobody. It says nothing about the caller's own account, which may be exempt through trustedIps or forced through mandatoryUsers.
available bool Whether the method could be switched on at all. For sms it is false until the installation has a working SMS provider, so a method can be offered here and still be impossible to enable; for app it is always true.
trusted_ips List[str] The addresses that skip the challenge, each either a single address, a from-to pair or a CIDR range. It is empty when no address is exempt, which means every account is challenged. [optional]
mandatory_users List[UUID] The accounts that are challenged even from a trusted address, by user ID. Empty means the exemption in trustedIps holds for everyone. [optional]
mandatory_groups List[UUID] The groups whose members are challenged even from a trusted address, by group ID, with the same reading of an empty list as mandatoryUsers. [optional]

Example

from docspace_api_sdk.models.tfa_settings_dto import TfaSettingsDto

# TODO update the JSON string below
json = "{}"
# create an instance of TfaSettingsDto from a JSON string
tfa_settings_dto_instance = TfaSettingsDto.from_json(json)
# print the JSON string representation of the object
print(TfaSettingsDto.to_json())

# convert the object into a dict
tfa_settings_dto_dict = tfa_settings_dto_instance.to_dict()
# create an instance of TfaSettingsDto from a dict
tfa_settings_dto_from_dict = TfaSettingsDto.from_dict(tfa_settings_dto_dict)

[Back to Model list] [Back to API list] [Back to README]