始める前に
以下が必要です。
- ユニバーサルログインが構成されたAuth0開発テナント。
- カスタムドメイン構成のアプリケーション。
- ローカルホスト上で動作する開発用アプリまたはサンプルアプリ(Reactサンプルアプリなど)
- Identifier First認証が有効になっている
- パスワードを使用するデータベース接続
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. accordion.expand_all/accordion.collapse_allAdd 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