AmazonをAuth0に接続する
1
Amazonの設定
- Amazon Developerアカウントのページにアクセスし、サインアップします。
- Amazon Developer Consoleで新しいSecurity Profileを作成します。
- Consent Screen Informationフォームに必要事項を入力します。
- Show Client ID and Client Secretリンクを選択します。
- Client IDとclient secretをコピーします。
- 作成したSecurity Profileを選択し、ドロップダウンからWeb Settingsを開きます。
- Editを選択し、Allowed OriginsとAllowed Return URLsを設定します。
-
以下の値を使用します。
- Allowed Origins:
https://YOUR_AUTH0_DOMAIN - Allowed Return URLs:
https://YOUR_AUTH0_DOMAIN/login/callback
You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains. - Allowed Origins:
- Saveを選択します。
2
Auth0の設定
このガイドでは、Auth0 で Amazon 接続をセットアップする手順を説明します。 このような接続を使用して、ユーザーに代わってアプリから第三者 API を呼び出す方法を一連の流れで示す例については、 ユーザーに代わって第三者 API を呼び出すクイックスタートをお読みください。
Token Vaultの設定例
Amazon接続でToken Vaultを設定するには、アプリケーションで次のコードスニペットを使用します。Next steps
- To learn how to configure applications to access Token Vault, read Configure Token Vault.
- If your application uses Organizations, authenticate the user with the target organization before initiating the Connected Accounts flow. Connected accounts remain linked to the individual user profile.
- To learn how to get an access token to make a tool call, complete the Call third-party APIs on user’s behalf Quickstart.