Enroll OTP

Enroll a user in One-Time Password (OTP) authentication.

Enroll OTP

Title: Enroll OTP

Typeobject
RequiredNo
Additional propertiesNot allowed

Description: Enroll a user in One-Time Password (OTP) authentication.

Example:

{
    "error": "Invalid credentials",
    "message": "Logout successful",
    "otp_secret": "JBSWY3DPEHPK3PXP",
    "otp_url": "otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example"
}
PropertyPatternTypeDeprecatedDefinitionTitle/Description
- errorNostringNo-Error
- messageNostringNo-Message
- otp_secretNostringNo-OTP Secret
- otp_urlNostringNo-OTP URL

1. Property Enroll OTP > error

Title: Error

Typestring
RequiredNo

Description: Human-readable message to be displayed about an error that occurred

Example:

"Invalid credentials"

2. Property Enroll OTP > message

Title: Message

Typestring
RequiredNo

Description: Human-readable message to display to the user. It being present is not indicative of an error

Example:

"Logout successful"

3. Property Enroll OTP > otp_secret

Title: OTP Secret

Typestring
RequiredNo

Description: Secret for the OTP authenticator app

4. Property Enroll OTP > otp_url

Title: OTP URL

Typestring
RequiredNo

Description: URL to configure the OTP authenticator app