メインコンテンツへスキップ
POST
https://{yourDomain}
/
mfa
/
associate
curl --request POST \
  --url https://{yourDomain}/mfa/associate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "authenticator_types": [
    "otp"
  ]
}
'
{
  "authenticator_type": "<string>",
  "secret": "<string>",
  "barcode_uri": "<string>",
  "recovery_codes": [
    "<string>"
  ],
  "oob_code": "<string>",
  "oob_channel": "<string>"
}

承認

Authorization
string
header
必須

Access token obtained from the authentication flow

ボディ

application/json
authenticator_types
enum<string>[]
必須

List of authenticator types to enroll

利用可能なオプション:
otp,
oob
oob_channels
enum<string>[]

List of OOB channels (required when enrolling OOB authenticators)

利用可能なオプション:
sms,
voice,
auth0
phone_number
string

Phone number for SMS/voice OOB (required when enrolling SMS/voice)

レスポンス

Authenticator association successful

authenticator_type
string

The type of authenticator enrolled

secret
string

The secret key for OTP authenticators

barcode_uri
string

QR code URI for OTP authenticators

recovery_codes
string[]

Recovery codes for account recovery

oob_code
string

OOB code for out-of-band authenticators

oob_channel
string

The OOB channel used