BROWSER Handle HTTP authentication function

Handle HTTP Basic/Digest authentication dialogs via CDP.

Help CentreBuilding Processes

This article describes the RPA Browser functionality to handle HTTP Basic/Digest authentication dialogs.

For a full list of available functions, please read BROWSER functions.


Description

The BROWSER Handle HTTP authentication function allows you to automatically respond to HTTP Basic or Digest authentication dialogs that appear when navigating to password-protected resources. It uses the Chrome DevTools Protocol (CDP) to intercept the authentication challenge and supply credentials before the browser shows a dialog.


Setting it up

To use the BROWSER Handle HTTP authentication function, follow these instructions:

{{popups:rpas/add:action=browser-http-auth}}

Once on a process map:

  1. Navigate to the process where you would like to add the BROWSER Handle HTTP authentication function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the BROWSER Handle HTTP authentication option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
URLYesURLThe URL that requires HTTP authentication.
UsernameYesTextThe authentication username.
PasswordNoPasswordThe authentication password (plain text). Use either this or Vault key.
Vault keyNoTextVault key to retrieve the password from the credential vault (alternative to password).
VariableNoTexthttp_authVariable name to store the result.

Output variables

VariableTypeDescription
{http_auth}BooleanTrue if authentication succeeded, False if it failed or timed out.

Errors

ErrorDescription
Browser not openNo browser session is active.
Authentication failedThe credentials were rejected by the server.
TimeoutThe authentication dialog did not appear within the timeout period.

Tips

  • Place this action before navigating to the protected URL so the credentials are ready when the challenge arrives.
  • Use the Vault key parameter instead of plain-text passwords for better security.
  • This handles HTTP 401 authentication dialogs, not HTML login forms – use BROWSER Log in for form-based logins.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.