Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Generating a one-time password

Updated on March 15, 2022

Generate a one-time password to provide a mechanism for securely logging in to an application running on Pega Platform.

Note: Configuring a multi-factor authentication policy is the default method to control the behavior of multi-factor authentication. For more information, see Configuring multi-factor authentication policies. You can also configure more advanced multi-factor authentication scenarios, such as generating the one-time password by calling an activity or calling an API.

The pxSendOTP activity generates a one-time password (a fixed-length, eight-digit number), sends it to the user and then stores it in memory until it expires. It returns a Reference ID value that identifies a specific one-time password during later verification of a user entry by the pxVerifyOTP activity. Input parameters for this activity must be supplied in an instance of the Embed-OTPInputs class, which is supplied as the OTPInputs parameter in the activity.

You can generate a one-time password in the following ways:

  • Previous topic Configuring multi-factor authentication policies
  • Next topic Generating a one-time password by calling an activity

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us