Generating a one-time password by calling an API
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.
- Create a REST Connector by using the REST integration wizard.
For more information about how to configure the connector, see Creating a REST integration.
- In the Endpoint URL field, enter the authenticate/one-time password web service on your server instance.
- Select the POST method to invoke the external REST service.
- In the Add a REST response dialog box, in the Content type list, select JSON.
- For the response, enter the following text:
{ "Context": "Test 126", "EmailSettings": { "CorrespondenceName": "pyDefaultOTPCorr", "EmailAccount": "Default", "Subject": "OTP New", "ToAddress": "[email protected]" } }
- Click Save.
Previous topic Generating a one-time password by calling an activity Next topic Verifying a one-time password