Sign On with a Username

POST {{authPath}}/{{envID}}/flows/{{flowID}}

The POST /{{envID}}/flows/{{flowID}} operation initiates an action to allow users to sign on with a username. The request body requires only the username attribute. The username value is verified in this action. This operation uses the application/vnd.pingidentity.user.lookup+json custom media type as the content type in the request header.

Prerequisites

Note: You must create a new sign-on policy with the appropriate sign-on policy actions to use this sign-on flow.

The status property value in the response indicates that the one-time password validation step used in a multi-factor authentication flow is a required action. The response includes the validateOTP link to initiate this required step.

PropertyTypeRequired?
usernameStringRequired

Request Body

{"username"=>"xxxxx"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Cookiestring

RESPONSES

status: OK

{"_links":{"otp.check":{"href":"https://auth.pingone.com/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/flows/037243b1-7ae9-4b6b-ad11-028250650f02"},"device.select":{"href":"https://auth.pingone.com/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/flows/037243b1-7ae9-4b6b-ad11-028250650f02"},"self":{"href":"https://auth.pingone.com/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/flows/037243b1-7ae9-4b6b-ad11-028250650f02"}},"id":"037243b1-7ae9-4b6b-ad11-028250650f02","resumeUrl":"https://auth.pingone.com/abfba8f6-49eb-49f5-a5d9-80ad5c98f9f6/as/resume?flowId=037243b1-7ae9-4b6b-ad11-028250650f02","status":"OTP_REQUIRED","createdAt":"2021-07-13T19:00:08.426Z","expiresAt":"2021-07-13T19:15:21.241Z","_embedded":{"devices":[{"id":"203fe40d-1b4a-419b-947b-d59fe4d62405","type":"SMS","status":"ACTIVE","phone":"*******01"}],"application":{"name":"WebAppWithMFA_1626202732"}},"bypassAllowed":false,"selectedDevice":{"id":"203fe40d-1b4a-419b-947b-d59fe4d62405"}}