Configuring one-time password (OTP)
Some applications require a one‑time password (OTP) as part of their login process or automatic exploration. AppScan supports OTP‑based authentication, you need to configure the OTP before you record the login or automatic explore sequence for these sites.
About this task
- TOTP (Time‑based one‑time passwords) or
- URL‑generated OTPs (The OTP value is detected from the URL response).
- Only one OTP type (TOTP or URL-generated) is supported per scan.
- For TOTP only numerical values are supported.
- When OTP is configured, Action-based must be the selected Login playback method in the Login playback. OTP does not work with Request-based login.
Procedure
- Navigate to Multi-Factor Authentication (MFA) from the Web full configuration
-
Select the OTP method used by your application.
- TOTP (time‑based): commonly used by authenticator apps
- URL‑generated: used by some custom authentication flows
-
Enter the required parameters for the selected OTP method.
-
Review or add HTTP parameters as needed.
During the login analysis of a recorded login, AppScan detects this parameter and adds them to the OTP HTTP-parameters list and to the OTP entry in the Automatic Form Fill view. If you are using automatic login, or if this parameter is not part of the login process, you must configure it manually.
- Click Apply.
How to identify the OTP HTTP-parameter
About this task
Procedure
- Open a browser and go to your application's login page.
- Click F12 to open the developer tools pane of the browser (opens to the right of, or underneath, the main browser pane).
- Click on the Elements tab to view the HTML code. When you select a part of the code, the element is highlighted in the main browser pane.
-
Locate the element that highlights the OTP field.
Example:
<input type="text" name="OTPvalue" value=""> -
The value of the name parameter, without the quotation marks, is the OTP
HTTP parameter you need.
Example:
OTPvalue - If there is more than one OTP HTTP parameter, click Add another to add additional fields as needed.
Record the login, verify OTP, and run the scan
Procedure
-
Record the login procedure:
- Go to Login management, and click Record login sequence > AppScan browser.
- Enter your username and password.
- When prompted for the OTP, use the value that AppScan provides.
- Click Login.
- Once you are successfully logged in, click Analyze login. A confirmation "Login sequence recorded" appears.
-
Verify OTP integration:
- Return to the OTP view.
- Confirm that the OTP HTTP parameter has been added automatically.
- Open Automatic Form Fill to verify that the parameter is also listed there.
- Click Validate to check AppScan replay the login to ensure the OTP is correctly submitted.
-
Start the scan:
By configuring OTP settings and recording the login sequence, AppScan can successfully authenticate to applications that require one‑time passwords. This ensures complete scan coverage for sites protected by multi‑factor authentication.