- ユーザー名とパスワード、またはGoogleアカウントを使用してサインアップ・ログインする。
- OAuth 2.0とOpenID Connectを使用してユーザーを認証・認可する。
技術スタックを選択
- Next.js
- FastAPI
- Use sample app (recommended)
- Integrate into your app
Download sample app
Start by downloading and extracting the sample app. Then open in your preferred IDE.Install packages
Ensure you havenpm installed or follow the instructions to install npm in its documentation.
In the root directory of your project, install the required packages:Create your environment file
In the root directory of your project, create a new.env.local file and add the following content:.env.local
AUTH0_DOMAIN, AUTH0_CLIENT_ID, and AUTH0_CLIENT_SECRET, navigate to Applications > Applications in the Auth0 Dashboard and select your client application. You’ll find these values in the Basic Information section at the top.
Copy each value to the matching setting.Next, run this command to generate a random 32 byte value and copy it to the AUTH0_SECRET field:generate random 32 byte value
Run your application
Run this command to start your server:http://localhost:3000 in your browser.You will see:
次のステップ
- ファーストパーティのツール呼び出しをセットアップするには、クイックスタート「ユーザーに代わってファーストパーティ API を呼び出す」を完了してください。
- サードパーティのツール呼び出しをセットアップするには、クイックスタート「ユーザーに代わってサードパーティ API を呼び出す」を完了してください。
- ユーザー認証の詳細をご覧ください。