Connecter Amazon à Auth0
1
Configuration d’Amazon
- Rendez-vous sur la page Compte développeur Amazon et inscrivez-vous.
- Créez un nouveau profil de sécurité (Security Profile) dans la console développeur Amazon (Amazon Developer Console).
- Remplissez le formulaire des renseignements de l’écran de consentement (Consent Screen Information).
- Sélectionnez le lien Show Client ID and Client Secret.
- Copiez l’identifiant du client et le secret client.
- Sélectionnez votre nouveau profil de sécurité, puis ouvrez Web Settings dans le menu déroulant.
- Sélectionnez Edit, puis configurez Allowed Origins et Allowed Return URLs.
-
Utilisez les valeurs suivantes :
- 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 :
- Sélectionnez Save.
2
Configuration d’Auth0
Ce guide vous explique comment configurer la connexion Amazon dans Auth0. Pour un exemple complet montrant comment configurer votre application afin d’appeler des API tierces au nom de l’utilisateur à l’aide d’une telle connexion, consultez le guide de démarrage rapide Appeler des API tierces au nom de l’utilisateur.
Exemple de configuration du Token Vault
Pour configurer le Token Vault pour votre connexion Amazon, vous pouvez utiliser l’extrait de code suivant dans votre application :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.