La classe d’écran interstitiel Captcha

La classe d’écran interstitiel Captcha fait partie du flux d’authentification Identifier First et est présentée en fonction des paramètres du locataire. Pour plus de détails, consultez la section Détection des robots.

Captcha Interstitial

Importer et instancier la classe d’écran interstitiel Captcha :

import InterstitialCaptcha from "@auth0/auth0-acul-js/interstitial-captcha";
const interstitialCaptcha = new InterstitialCaptcha();

// SDK Properties return a string, number or boolean
// ex. "interstitial-captcha"
interstitialCaptcha.screen.name;

// SDK Methods return an object or array
// ex. { email: "someone@example.com" } 
interstitialCaptcha.screenData();

Was this helpful?

/

Propriétés

Les propriétés de la classe d’écran interstitiel Captcha sont :

interface branding {
  settings: null | BrandingSettings;
  themes: null | BrandingThemes;
}

interface BrandingSettings {
  colors?: {
    pageBackground?: string | {
      angleDeg: number;
      end: string;
      start: string;
      type: string;
    };
    primary?: string;
  };
  faviconUrl?: string;
  font?: {url: string;};
  logoUrl?: string;
}

interface BrandingThemes {
  default: {
    borders: Record<string, string | number | boolean>;
    colors: Record<string, string>;
    displayName: string;
    fonts: Record<string, string | boolean | object>;
    pageBackground: Record<string, string>;
    widget: Record<string, string | number>;
  };
}

Was this helpful?

/

Méthode

La méthode de la classe d’écran interstitiel Captcha est :

submitCaptcha( options? )

Cette méthode vérifie la réponse captcha et dirige l’utilisateur à l’étape suivante.

interstitialCaptchaManager.submitCaptcha({
  captcha: <CaptchaCodeResponse>
});

Was this helpful?

/

Paramètre Type Requis Description
captcha chaîne Oui Code captcha ou réponse du fournisseur de captcha.
[clé: chaîne] chaîne | nombre | booléen | non défini Non Données supplémentaires collectées auprès de l’utilisateur.