Avant de commencer
Vous avez besoin de ce qui suit :
- Un locataire de développement Auth0 avec la connexion universelle configurée.
- Une application configurée de domaine personnalisé.
- Une app de développement ou d’exemple (comme React sample) s’exécutant sur votre localhost.
- Authentification Identifier First activée
- Une connexion de base de données qui utilise les mots de passe.
Setup
Complete the Build Identifier First Login with Password guide and navigate to your local directory. In your Auth0 tenant, navigate to Dashboard > Security > Attack Protection and enable at least one challenge, then chooseAuth Challenge
as your CAPTCHA provider when prompted.
Create the CAPTCHA file
In your components folder, create a file called SimpleCaptcha.tsx and include the following code.Add SimpleCaptcha.tsx
Add SimpleCaptcha.tsx
Add the component
Add the following code to the Login ID screen inside the form and after the identifier input.Add a Simple CAPTCHA
Add a Simple CAPTCHA