Registering a TOTP authenticator for OTP-based sign-in
You must register a time-based one-time passcode (TOTP) authenticator in Salesforce and capture the secret URI to configure OTP generation in HCL DevOps Test Hub (Test Hub).
Before you begin
You must have completed the following tasks:
- Read and understood the information in Configuration for Salesforce Lightning tests.
- Ensured that you have access to your Salesforce account and permission to change personal security settings.
About this task
You can register an authenticator app for your Salesforce account. During registration, Salesforce displays a QR code and a corresponding secret key. The TOTP secret is used by Test Hub to generate matching verification codes at run time.
Procedure
- Log in to the Salesforce application with your credentials.
-
Click your user avatar in the top-right corner and select
Settings.
The Personal Information page is displayed.
-
In the left navigation pane, click Advanced User Details.
The Advanced User Details page is displayed.
-
Locate App Registration: One-Time Password Authenticator and
click Connect.
The Verify Your Identity page is displayed.
- Enter the 6-digit verification code sent to your registered email address in the Verification Code field.
-
Click Verify.
The Connect an Authenticator App page is displayed with a QR code and a secret key.
-
Open your authenticator app, such as Microsoft Authenticator or Google Authenticator,
and scan the QR code.
Before you click Connect, you must capture the
otpauth://secret URI from this QR code, as described in the following steps. Test Hub uses this value to generate matching verification codes automatically each time the test runs.Perform the following steps to capture theotpauth://secret URI from the displayed QR code:- Capture a screenshot of the displayed QR code using a screenshot tool, such as Snipping Tool.
- Use the text extraction feature, such as Scan text in Snipping Tool, to extract the text from the screenshot.
- From the extracted text, obtain the
otpauth://secret URI. You need this value to configure OTP generation in Test Hub.
- In the Verification Code field, enter the 6-digit code displayed in your authenticator app.
- Click Connect.
Results
You have registered a TOTP authenticator and captured the secret URI to configure OTP generation.