Authentication
Description of core concepts exposed by the Kaizen Platform.
One of the most challenging barriers to reliable browser automation is managing user authentication: maintaining logins, keeping track of sessions, automating 2FA, loading cookies, and handling timely re-authentication. Kaizen handles all of this on your behalf.
Automated Session Management
Kaizen continuously manages authentication sessions on your behalf. It will automatically handle:
- Automatic login using credentials you’ve securely stored.
- Session persistence between executions.
- Smart re-authentication that only occurs when needed to run an execution for a workflow.
Two-Factor Authentication
Many portals require 2FA (One-Time Password) authentication as part of their login process. Kaizen supports allows developers to automate 2FA to consistently provide a logged in session for their workflow.
Configuring 2FA
2FA is configured per Login. Some end users might not have 2FA enabled, while others do. Kaizen allows developers to specify:
- Whether 2FA is enabled for a given Login
- What method of 2FA delivery is used (e.g. email, SMS)
When 2FA is enabled for a Login, Kaizen supports two primary workflows to complete authentication for a page.
Automating 2FA
There are two approaches developers can use to automate 2FA on the Kaizen platform.
TOTP-Based 2FA Automation
The primary method Kaizen supports for automating two-factor authentication is through Time-based One-Time Password (TOTP) tokens. This approach uses a shared secret key to generate time-synchronized verification codes, similar to those provided by authenticator apps like Google Authenticator or Authy.
When you set up an item with TOTP-based 2FA:
- Kaizen securely stores the TOTP secret key
- During login flows, Kaizen automatically generates the current valid token
- The system enters this token into the appropriate field to complete authentication
To set up TOTP-based 2FA for your items, please contact the Kaizen team.
API-Based 2FA Completion
Another way to complete 2FA authentication for an Item is to forward all received 2FA codes to the submit 2FA code for verification endpoint provided by Kaizen. Developers can receive 2FA codes through email and SMS, and simply forward the extracted code to this endpoint.