Table of Contents

Generating a one-time password by calling an API


Only available versions of this content are shown in the dropdown

You can generate a one-time password by calling an API. Use this method to use a one-time password from an external system or if your application is running on a Pega Platform version earlier than 7.3.

  1. Create a REST Connector by using the REST integration wizard.

    For more information about how to configure the connector, see Creating a REST integration.

  2. In the Endpoint URL field, enter the authenticate/one-time password web service on your server instance.

  3. Select the POST method to invoke the external REST service.

  4. In the Add a REST response dialog box, in the Content type list, select JSON.

  5. For the response, enter the following text:

    { "Context": "Test 126", "EmailSettings": { "CorrespondenceName": "pyDefaultOTPCorr", "EmailAccount": "Default", "Subject": "OTP New", "ToAddress": "" } }
  6. Click Save.

Complete the Verifying a one-time password procedure.
Did you find this content helpful?

Have a question? Get answers now.

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