Before you start
You need:
- An Auth0 development tenant configured with Universal Login and custom domain.
- Enable Identifier First Authentication on your tenant to render the ACUL Login ID screen.
- A development application or an Auth0 SDK sample application on
localhost
for Auth0 authentication. - A database connection to authenticate users.
- An Auth0 ACUL sample application to render the ACUL screens.
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