Authentication nodes

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:

Multi-factor push authentication

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:

  1. The Push Sender node sends a push notification to their registered device.

  2. 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 code for situations like this.

    A Retry Limit Decision node allows three attempts to enter a recovery code before failing the authentication.

  3. 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:

  1. 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 Success outcome. 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 Success outcome.

  2. 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.

Dependencies

This node has no dependencies.

Configuration

Property Usage Availability

Recovery Code Type

Select the type of recovery code the user will submit for verification.

Default: OATH

All node versions

Push Notification Profile RAPID only

This property only displays when Recovery Code Type is set to Push.

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 Legacy Configuration option is available for backward-compatibility. When selected, recovery codes are validated using the realm-level Push Notification Delivery settings, matching the behavior of the v1.0 node.

Outputs

This node doesn’t change the shared state.

Callbacks

The node sends a NameCallback, which prompts the user to enter their recovery code.

Outcomes

True

The user entered a valid recovery code.

False

The user didn’t enter a valid recovery code.

Errors

This node doesn’t log any error or warning messages of its own.

Changelog

Version Changes

2.0 RAPID only

Adds the Push Notification Profile configuration option. This option lets you choose a push profile to use for validating recovery codes when a user registered their device for MFA using push notifications.

1.0

Deprecated.