PingOne Flows
The flow endpoint is used to interact with the user in a sign-on workflow. Flow endpoint operations are used only to implement custom authentication UIs. OIDC/OAuth 2 and SAML requests initiate the flow and redirect the browser to the custom authentication UI (which is configured in the application through the application’s loginPageUrl property).
|
Flows expire after 15 minutes of inactivity. Interacting with a flow beyond this period results in a 404. |
Common sign-on actions
Login actions
The flow endpoint can initiate login actions that specify the operations required to authenticate with a username and password.
Multi-factor authentication actions
The flow endpoint can also initiate multi-factor authentication (MFA) actions that specify the operations required to complete authentication using a registered user device and a one-time password (OTP).
Identity first actions
The flow can initiate a discovery action used to identify the user by username and determine the applicable authentication methods for this user.
Progressive profiling actions
Progressive profiling actions prompt users to provide additional data at sign on. This action type does not authenticate users. It is used only to obtain additional profile data.
Agreement actions
Agreement actions enforce user consent to an agreement at sign on. This action type does not authenticate users. It is used only to obtain user consent to a terms of service agreement.
Identity provider actions
An action that bypasses the PingOne sign-on prompt and immediately redirects the user to an external identity provider’s sign-on workflow to authenticate.
Workflows
Flow status
In a sign-on workflow, the flow’s status property value returned by the last action identifies the appropriate next action in the authentication process. For example, if an application uses the LOGIN sign-on policy, when a user initiates sign-on and starts the authentication flow, the response returned by the flow shows a status value that specifies the next required step to complete this flow successfully. For the LOGIN sign-on policy, the next action prompts the user to enter a username and password, as indicated by the USERNAME_PASSWORD_REQUIRED value in the status property.
"status" : "USERNAME_PASSWORD_REQUIRED"
The response data includes a link to the required action, which in this case is the usernamePassword.check:
{
"_links" : {
"self" : {
"href" : "https://auth.pingone.com/{{envID}}/flows/{{flowID}}"
},
"session.reset" : {
"href" : "https://auth.pingone.com/{{envID}}/flows/{{flowID}}"
},
"usernamePassword.check" : {
"href" : "https://auth.pingone.com/{{envID}}/flows/{{flowID}}"
}
},
After the user submits a username and password, the flow calls the usernamePassword.check action to verify the username and password.
For more information about flow actions, refer to Flow API Actions.
Flow status values
An authentication flow can return one of the following status values in response to a sign-on action:
| Status value | Description |
|---|---|
|
This value specifies that a username and password is required. This status can initiate a |
|
This value specifies that a password is required. This status initiates a |
|
This value specifies that a sign-on action is required. This status transitions to a |
|
This value specifies that the user initiated a |
|
This value specifies that the user’s account must be verified. This status calls the |
|
This value specifies that the user must complete a multi-factor authentication action. This status calls the |
|
This value specifies that the user must complete a device selection multi-factor authentication action. This status calls the |
|
This value specifies that a user’s password has expired and must be updated. This status calls the |
|
This value specifies that a temporary password must be changed or updated. This status calls the |
|
This value specifies that the external identity returned by the identity provider requires an account linking action to link the external account to an existing user. This status can initiate a |
|
This value specifies that the external identity information returned by the identity provider requires an account confirmation action to verify the account data. This status can initiate a |
|
This value specifies that account authentication is required through an external identity provider’s authentication flow. The |
|
This value specifies that user must submit the requested profile data in order to continue the authentication flow. |
|
This value specifies that the entire flow is completed and initiates a browser redirect to the |
|
This value specifies that the entire flow has failed. |
|
This value specifies that a push was sent to a native device to confirm the authentication. The client will have to poll this status using |
|
This value specifies that a push was sent to a native device, but the native device didn’t answer the push during the allowed timeframe. |
|
This value specifies that for a FIDO2 device type, an assertion generated by the browser from the provided webauthn public key credential request is required to continue the flow. The flow calls the |
|
This value specifies that users need to consent to an agreement. This status calls the |
|
This value specifies that an activation action is required to continue the flow. The flow calls the |
|
This value specifies that users need to consent to a device authorization grant agreement. This status calls the |
|
This completed state is used for device authorization grants to transition to a completed state. Unlike the |
|
This completed state is used for device authorization grants to transition to a completed state, and it generates a "device consent declined" audit event. |
Flow status data model and embedded resources
The following sections show the parameters required by the flow status. In addition, the following links and embedded resources are returned in the flow response for the given flow status.
USERNAME_PASSWORD_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the username or ID of the user to authenticate. |
|
String |
Required |
Mutable |
A string that specifies the password or ID of the user to authenticate. |
| Links | Description |
|---|---|
|
The link to initiate a sign-on action that allows users to login with a username and password. The request body requires the |
|
The link to initiate a sign-on action to register a user. The request body requires the |
|
The link to redirect a sign-on action to register a user to an external identity provider’s registration workflow. |
|
The link to initiate an action to recover a user’s forgotten password. The request body requires the |
| Embedded resources | Description |
|---|---|
|
The link to the external authentication resource to initiate authentication using an external identity provider’s authentication flow. The response also returns the following information about the identity provider: |
|
The embedded password policy resource expanded to show password policy attributes. For more information about password policy attributes, refer to Password policies data model. |
|
If an associated login action is configured with the |
SIGN_ON_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the username or ID of the user to sign on. |
| Links | Description |
|---|---|
|
The link for existing users to sign on using their |
|
The link to redirect a sign-on action to register a user to an external identity provider’s registration workflow. |
PASSWORD_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the username or ID of the user to authenticate. If provided, must match the user currently associated with the session. |
|
String |
Required |
Mutable |
A string that specifies the password or ID of the user to authenticate. |
| Links | Description |
|---|---|
|
The link to initiate a sign-on action that allows users to log in with a username and password. The request body requires the |
|
The link to initiate an action to recover a user’s forgotten password. The request body requires the |
| Embedded resources | Description |
|---|---|
|
The link to the external authentication resource to initiate authentication using an external identity provider’s authentication flow. The response also returns the following information about the identity provider: |
PASSWORD_EXPIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the current password, which must be verified before the new password is set. |
|
String |
Required |
Mutable |
A string that specifies the new password to set. |
| Links | Description |
|---|---|
|
The link to initiate a sign-on action that allows users to reset their password. The request body requires the |
| Embedded resources | Description |
|---|---|
|
The embedded password policy resource expanded to show password policy attributes. For more information about password policy attributes, refer to Password policies data model. |
MUST_CHANGE_PASSWORD
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the current password, which must be verified before the new password is set. |
|
String |
Required |
Mutable |
A string that specifies the new password to set. |
| Links | Description |
|---|---|
|
The link to initiate a sign-on action that allows users to reset their password. The request body requires the |
| Embedded resources | Description |
|---|---|
|
The embedded password policy resource expanded to show password policy attributes. For more information about password policy attributes, refer to Password policies data model. |
RECOVERY_CODE_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the recovery code sent to the user to recover the user’s password. |
|
String |
Required |
Mutable |
A string that specifies the new password to set. |
| Links | Description |
|---|---|
|
The link to initiate an action to recover the account and set a new password. The request body requires the |
|
The link to send the one-time password (OTP) to the user. |
| Embedded resources | Description |
|---|---|
|
The embedded password policy resource expanded to show password policy attributes. For more information about password policy attributes, refer to Password policies data model. |
VERIFICATION_CODE_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the verification code to check. |
| Links | Description |
|---|---|
|
The link to initiate an action to verify the user account to continue the authentication flow. |
|
The link to initiate an action to send the user a new account verification email. |
DEVICE_SELECTION_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the ID of the selected device. |
| Links | Description |
|---|---|
|
The link to initiate an action to specify a device ID to use in the multi-factor authentication flow. |
| Embedded resources | Description |
|---|---|
|
The embedded devices resource expanded to show a list of authenticating devices for this operation. For more information about device attributes, refer to Device properties. |
OTP_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the ID of the currently selected device. |
| Links | Description |
|---|---|
|
The link to initiate an action to specify a device ID to use in the multi-factor authentication flow. |
|
The link to initiate an action to validate the OTP used in the multi-factor authentication flow. |
| Embedded resources | Description |
|---|---|
|
The embedded devices resource expanded to show a list of authenticating devices for this operation. For more information about device attributes, refer to Device properties. |
PUSH_CONFIRMATION_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the ID of the currently selected device. |
| Links | Description |
|---|---|
|
The link to initiate an action to specify a device ID to use in the multi-factor authentication flow. |
| Embedded resources | Description |
|---|---|
|
The embedded devices resource expanded to show a list of authenticating devices for this operation. For more information about device attributes, refer to Device properties. |
PUSH_CONFIRMATION_TIMED_OUT
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the ID of the currently selected device. |
| Links | Description |
|---|---|
|
The link to initiate an action to specify a device ID to use in the multi-factor authentication flow. |
| Embedded resources | Description |
|---|---|
|
The embedded devices resource expanded to show a list of authenticating devices for this operation. For more information about device attributes, refer to Device properties. |
|
For MFA actions that use push notification on a native device, the user resource must have a native device and an application associated with its user ID. In cases where a push token is sent to an uninstalled application, APNs may not return an unregistered application error. By not returning an error, the MFA flow continues to prompt for push confirmation and can result in a |
ACCOUNT_LINKING_REQUIRED
| Links | Description |
|---|---|
|
The link to initiate a sign-on action that initiates an action to register a user. The request body requires the |
|
The link to redirect a sign-on action to register a user to an external identity provider’s registration workflow. |
| Embedded resources | Description |
|---|---|
|
An array of 0 or more users that match the external identity. The request returns the |
|
The external identity provider used to authenticate. The request returns the |
ACCOUNT_CONFIRMATION_REQUIRED
| Links | Description |
|---|---|
|
The link to initiate an action to verify the data returned by the external identity provider. The request body can include the returned attributes from the identity provider. |
| Embedded resources | Description |
|---|---|
|
An array of attributes returned by the external identity provider. |
EXTERNAL_AUTHENTICATION_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the name of the identity provider. |
|
String |
Required |
Mutable |
A string that specifies the identity provider type. |
| Embedded resources | Description |
|---|---|
|
A string that specifies the URL for the external identity provider’s sign-on screen to initiate authentication with the external identity provider. |
|
A string that specifies the URL for the external identity provider’s login button icon file. |
|
If an associated login action is configured with the |
PROFILE_DATA_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the display name as defined in the user schema. |
|
String |
Required |
Mutable |
A string that specifies the attribute name/path as defined in the user schema (for example, |
|
Boolean |
Required |
Mutable |
A boolean that specifies whether the user is required to provide a value for the attribute. |
| Links | Description |
|---|---|
|
The link to update the specified user’s profile with the user attribute values provided in the request. |
| Embedded resources | Description |
|---|---|
|
An array of user attributes provided to update the user’s profile. |
|
A string that specifies the attribute path, as defined in the user schema (for example, |
|
A string that specifies the attribute’s display name, as defined in the user schema. This property is optional. |
|
A boolean that specifies whether the user is required to provide a value for the attribute. |
|
A string that specifies text to display to the user when prompting for attribute values. |
ASSERTION_REQUIRED
| Response property | Description |
|---|---|
|
A string that specifies the public key credential request options object generated for the selected device that should be used to call the |
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
String |
Required |
Mutable |
A string that specifies the authenticator assertion response, which contains the signed challenge needed to complete the MFA action. |
|
String |
Optional |
Mutable |
A string that specifies the browser compatibility to support webauthn. Options are |
|
String |
Required |
Mutable |
A string that specifies the server name where the fetch originates, providing the URI scheme and hostname (for example, https://apps.pingone.com). |
| Links | Description |
|---|---|
|
The link to initiate an action to specify a device ID to use in the multi-factor authentication flow. For more information, refer to Select an MFA device. |
|
The link to initiate an action to validate the assertion used in the multi-factor authentication flow. For more information, refer to Check assertion. |
| Embedded resources | Description |
|---|---|
|
The embedded devices resource expanded to show a list of authenticating devices for this operation. For more information about device attributes, refer to Devices model properties. |
AGREEMENT_CONSENT_REQUIRED
| Property | Type | Required? | Mutable? | Description |
|---|---|---|---|---|
|
Boolean |
Required |
Mutable |
A boolean that specifies whether the user has consented to the agreement. This property is required for a |
| Links | Description |
|---|---|
|
The link to initiate an action in which the user accepts the agreement. |
DAG_USER_CODE_REQUIRED
| Parameters | Description |
|---|---|
|
A string that specifies the user code value returned by the device authorization grant authorize request. |
| Links | Description |
|---|---|
|
The link to initiate an action to verify the end-user’s user code. |
DAG_CONSENT_REQUIRED
| Parameters | Description |
|---|---|
|
A boolean that specifies whether the user has consented to the agreement. This property is required for a |
| Links | Description |
|---|---|
|
The link to initiate an action to complete the consent agreement. On accepting the agreement, the flow transitions to the |