Step 2: Request OTP by SMS
POST {{HOST}}/admin/v1/MyAuthenticationFactorInitiator
This step requests the OTP be sent through SMS.
The client must include the following attributes:
- deviceId: received in the Step 1 response
- requestId: received in the Step 1 response
- userName: username of the user
In the response, the otpCode is sent via SMS to the user's mobile device
Request Body
{"schemas"=>["urn:ietf:params:scim:schemas:oracle:idcs:AuthenticationFactorInitiator"], "deviceId"=>"92142250e2ab4608b5c6532eb73e3d7c", "requestId"=>"a0a7f9bf-13a8-43f3-bcc7-2087dc3f7a18o-o1548346179", "userName"=>"{{username}}", "authFactor"=>"SMS"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: Created
{"deviceId":"92142250e2ab4608b5c6532eb73e3d7c","requestId":"a0a7f9bf-13a8-43f3-bcc7-2087dc3f7a18o-o1548346179","authFactor":"SMS","userName":"jbloggs","displayName":"Joe's Personal Phone","schemas":["urn:ietf:params:scim:schemas:oracle:idcs:AuthenticationFactorInitiator"]}