Interstitial Captcha Screen
The Interstitial Captcha screen is part of the Identifier First Authentication flow and is presented based on the tenant settings. For more details, review Bot Detection.
Context Data
The Universal Login Context Data contains unique-per-screen transaction and configuration data. Optional context data can be configured in the Management API with the context_configuration
parameter. Read Universal Login Context for information about context data and read Configure Screens for details about optional context data.
interface InterstitialCaptcha {
client: Client;
organization?: Organization;
prompt: Prompt;
screen: {
name: string;
captcha: Captcha;
};
transaction: Transaction;
};
Was this helpful?
context_configuration: [
"branding.settings",
"branding.themes.default",
"client.logo_uri",
"client.description",
"client.metadata.[key_name]",
"organization.display_name",
"organization.branding",
"organization.metadata.[key_name]",
"screen.texts",
"tenant.name",
"tenant.friendly_name",
"tenant.enabled_locales",
"transaction.connection.metadata.[key_name]",
"untrusted_data.submitted_form_data",
"untrusted_data.authorization_params.ui_locales",
"untrusted_data.authorization_params.login_hint",
"untrusted_data.authorization_params.screen_hint",
"untrusted_data.authorization_params.ext-[key_name]"
]
Was this helpful?
Accessing Context Data
Using the Auth0 ACUL JS SDK to access the context data for each screen is recommended. The SDK provides properties and methods that simplify accessing the data.
Initialize the InterstitialCaptcha
class to access its properties and methods.
import InterstitialCaptcha from '@auth0/auth0-acul-js/interstitial-captcha';
const interstitialCaptchaManager = new InterstitialCaptcha();
// SDK Properties return a string, number or boolean
// ex. "interstitial-captcha"
interstitialCaptchaManager.screen.name;
Was this helpful?
SDK Properties & Methods
The following properties and methods are available on this screen.
Screen Operations
The Interstitial Captcha screen supports the following operations.
Submit Captcha
Continue the transaction after verifying the captcha response. This operation verifies the captcha response and directs the user to the next step.
JS SDK Method: submitCaptcha()
Parameter | Type | Required | Description |
---|---|---|---|
captcha |
string | Yes | The captcha code or response from the captcha provider. |
interstitialCaptchaManager.submitCaptcha({
captcha: <CaptchaCodeResponse>
});
Was this helpful?