Recovery Code Collector Decision node
The Recovery Code Collector Decision node lets users authenticate with a recovery code that was generated when they registered a device for multi-factor authentication (MFA).
Use this node in an authentication journey that includes push notifications or one-time passwords. When the user loses their registered device, they can use a recovery code as an alternative method for authentication.
Find more information on viewing recovery codes when registering a device in Authenticator apps.
Example
The following example shows one possible implementation of multi-factor push authentication, which uses this node:
|
Replace the Push Sender, Recovery Code Collector Decision, and Push Registration nodes in your journey with Configuration Provider nodes to select a push profile dynamically at runtime. Find an example of how to do this in Imitate the Push Sender node. |
After verifying the user’s credentials, evaluation continues to the Device Profile Collector node to collect the device’s location and then proceeds to the Push Sender node.
If the user has a registered device:
-
The Push Sender node sends a push notification to their registered device.
-
The Push Wait node pauses authentication for five seconds. During this time, the user can respond to the push notification on their device using an authenticator app.
If the user exits the Push Wait node, they’re directed to the Recovery Code Collector Decision node, where they can enter a recovery code to authenticate.
Configure the Exit Message property in the Push Wait node with a message, such as Lost phone? Use a recovery codefor situations like this.A Retry Limit Decision node allows three attempts to enter a recovery code before failing the authentication.
-
The Push Result Verifier node verifies the user’s response:
-
If the user responds positively, they’re authenticated successfully and logged in.
-
If the user responds negatively, authentication fails.
-
If the push notification expires, the Push Sender node sends a new push notification.
Use a Retry Limit Decision node to constrain the number of times a new code is sent. -
If the user hasn’t yet responded, the flow loops back a step and the Push Wait node pauses authentication for another 5 seconds.
-
If the user doesn’t have a registered device:
-
The MFA Registration Options node presents the user with the following options:
- Register Device
-
The flow continues to the Push Registration node, which displays a QR code for the user to scan with their authenticator app.
- Get the App
-
Displayed only if the node is configured to display Get Authenticator App. The flow continues to the Get Authenticator App node, which displays links to download the authenticator app.
- Skip this step
-
Displayed only if the node is configured to allow users to skip registration. In this example, skipping is linked to the
Successoutcome. However, you could provide an alternative authentication flow using an Inner Tree Evaluator node for example. - Opt-out
-
Displayed only if the node is configured to allow users to skip registration. Evaluation continues to the Opt-out Multi-Factor Authentication node, which updates the user’s profile to skip MFA with push in the future. In this example, after updating the profile, the flow continues to the
Successoutcome.
-
The user registers the device with the Push Registration node.
After registration, the Recovery Code Display node displays the recovery codes to the user and the flow returns to the Push Sender node to continue push authentication.
|
To manage push devices, the user must log in using either the device or a recovery code. Find more information in Manage devices for MFA. |
Availability
| Product | Available? |
|---|---|
PingOne Advanced Identity Cloud |
Yes |
PingAM (self-managed) |
Yes |
Ping Advanced Identity Software (self-managed) |
Yes |
Inputs
This node requires the realm and username properties in the incoming node state.
Implement a Platform Username node earlier in the journey.
Configuration
| Property | Usage | Availability |
|---|---|---|
Recovery Code Type |
Select the type of recovery code the user will submit for verification. Default: |
All node versions |
Push Notification Profile RAPID only |
This property only displays when Recovery Code Type is set to Select a push profile from the list. This profile is used to validate recovery codes. Only recovery codes generated with the selected profile can be validated with this node. The |
Callbacks
The node sends a NameCallback, which prompts the user to enter their recovery code.