Question
Instellars Global Consulting Private Limited
IN
Last activity: 13 May 2025 6:23 EDT
PRPC Access with MFA Authentication (TOTP) with Third party App
I would like to implement a Third party Time Based One Time Password authentication Mechanism.
I followed documentation but this only get the user to email/SMS (phone number) but there is no documentation about TOTP related. Can someone suggest how this can be achieved.
scenario :
When user tries to login to application - he/she needs to authenticate himself by entering the Secured OTP available on third party app (In my case third part app is MS Authenticator) else approve on the Push notification he/she gets on screen
***Edited by Moderator Marije to add Capability tags***
@R K ⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
The standard documentation primarily covers email/SMS methods for MFA, but not TOTP with third-party authenticator apps.
After researching this topic, I can provide you with a solution approach for implementing TOTP-based authentication with Microsoft Authenticator in Pega. This will require creating a custom authentication service, as Pega doesn't provide built-in support for third-party authenticator apps out-of-the-box.
Understanding the Limitation
The standard MFA implementation in Pega currently only supports sending OTPs through email and SMS channels. As confirmed by the Pega product engineering team (referenced in the support discussion you linked), when using custom authentication services, you need to build the MFA functionality yourself within the authentication activity.
Implementation Approach for TOTP with Microsoft Authenticator
Here's a step-by-step approach to implement TOTP authentication with MS Authenticator:
1. Create a Custom Authentication Service
Start by creating a Custom Authentication Service rule:
@R K ⚠ This is a GenAI-powered tool. All generated answers require validation against the provided references.
The standard documentation primarily covers email/SMS methods for MFA, but not TOTP with third-party authenticator apps.
After researching this topic, I can provide you with a solution approach for implementing TOTP-based authentication with Microsoft Authenticator in Pega. This will require creating a custom authentication service, as Pega doesn't provide built-in support for third-party authenticator apps out-of-the-box.
Understanding the Limitation
The standard MFA implementation in Pega currently only supports sending OTPs through email and SMS channels. As confirmed by the Pega product engineering team (referenced in the support discussion you linked), when using custom authentication services, you need to build the MFA functionality yourself within the authentication activity.
Implementation Approach for TOTP with Microsoft Authenticator
Here's a step-by-step approach to implement TOTP authentication with MS Authenticator:
1. Create a Custom Authentication Service
Start by creating a Custom Authentication Service rule:
2. Implement TOTP Algorithm
You'll need to implement the TOTP algorithm according to RFC 6238 standards. This can be done by:
Here's a simplified example of what a Java implementation might look like:
3. User Enrollment Process
You'll need to create a process to enroll users for TOTP authentication:
4. Implement the Authentication Flow
Modify your login flow to incorporate TOTP verification:
5. Handle Push Notifications (Optional)
For the push notification approach mentioned in your scenario:
Code Example for Verification
Here's a simplified example of how verification might work in your authentication activity:
Security Considerations
References: