HOTP Generator node
The HOTP Generator node creates a string of random digits of the specified length for use as a one-time passcode (OTP).
Example
The following example demonstrates using an OTP in a multi-factor authentication journey:
-
The Page node with the Username Collector node and the Password Collector node prompts for the user credentials.
-
The Data Store Decision node confirms the username-password credentials.
-
The HOTP Generator node generates an eight-digit OTP.
-
The Choice Collector node prompts the user to choose whether they want to receive the OTP via email or SMS.
-
If the user chooses email, the OTP Email Sender node sends the OTP to the user’s email address.
-
If the user chooses SMS, the OTP SMS Sender node sends the OTP to the user’s mobile number.
-
-
The OTP Collector Decision node prompts the user to enter the OTP they received and verifies it. If the OTP is correct, the user is authenticated.
Availability
| Product | Available? |
|---|---|
PingOne Advanced Identity Cloud |
Yes |
PingAM (self-managed) |
Yes |
Ping Identity Platform (self-managed) |
Yes |
Configuration
| Property | Usage |
|---|---|
One Time Password Length |
The number of digits in the OTP. The minimum number of digits is 6, in accordance with the HOTP specification. Default: |
Outputs
The node adds the generated OTP and the time it was created to the oneTimePassword and oneTimePasswordTimestamp shared state attributes respectively.
Outcomes
Single outcome path.
Implement an OTP Email Sender node or an OTP SMS Sender node after this node to send the generated OTP to the user.