Step 2: Valdiate the OTP

POST {{stripeUrl}}/admin/v1/MyAuthenticationFactorValidator

This step validates the OTP.

In the request, the client must pass the following attributes:

  • deviceId: returned in Step 1
  • requestId: returned in Step 1
  • optCode: returned in the Oracle Mobile Authenticator or other authenticator

In the response, the attribute mfaStatus:ENROLLED indicates that user has enrolled for MFA. The preferredAuthenticationFactor attr indicates the factor set as the preferred method. in this case, it is TOTP.

Request Body

{"schemas"=>["urn:ietf:params:scim:schemas:oracle:idcs:AuthenticationFactorValidator"], "deviceId"=>"ddbeca400f5841bd82e0a324068e1b0b", "requestId"=>"30f61b36-a942-4db1-bca6-fbc63003190a", "otpCode"=>"946312", "authFactor"=>"TOTP", "scenario"=>"ENROLLMENT"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring
Datestring
x-content-sha256string

RESPONSES

status: Created

{"requestId":"30f61b36-a942-4db1-bca6-fbc63003190a","schemas":["urn:ietf:params:scim:schemas:oracle:idcs:AuthenticationFactorValidator"],"deviceId":"ddbeca400f5841bd82e0a324068e1b0b","otpCode":"946312","authFactor":"TOTP","scenario":"ENROLLMENT","meta":{"resourceType":"MyAuthenticationFactorValidator","location":"https://example.identitycloud.com/admin/v1/MyAuthenticationFactorValidator"},"status":"SUCCESS","displayName":"Joe's Phone","mfaStatus":"ENROLLED","mfaPreferredDevice":"ddbeca400f5841bd82e0a324068e1b0b","mfaPreferredAuthenticationFactor":"TOTP","securityQuestionsPresent":false,"emailFactorEnrolled":true,"devicesCount":2}