Requiere TOTP for sensitive information or actions

While TOTP (Time-Based One-Time Password) is typically used for user login authentication in Salesforce, its implementation can be extended to enhance security for accessing sensitive information and performing critical operations within the system. This additional layer of security ensures that even after a user has logged in, specific actions that involve sensitive data require another verification step using TOTP.

HACKS

jmelon

6/23/20241 min read

  1. Clone the repository or download the zip file from https://github.com/mpdigitals/totp-service-sfdc

  2. Deploy the TOTPService class.

  3. Optionally, deploy the TOTP_Triggered_flow_Action_Account Flow and fields (TOTP__c and VIP__c) for testing.

  4. Drag the account fields to the Account Lightning page.

Configuration
Invocable Method

The TOTPService class provides an invocable method verify TOTP that can be used in Salesforce Flows. This method verifies the provided TOTP code and returns the verification result.

Example Usage in Flow:
  1. Add an action in your Triggered-Flow and select Verify TOTP.

  2. Provide the necessary inputs (TOTP code).

  3. Use the output of the action to handle the verification result in your Flow logic.

Usage
Apex

You can also use the TOTPService class directly from Apex code. Here's an example of how to call the service from an anonymous Apex block:

Related Stories

Related Stories