When building voice integrations for ecommerce, you'll most likely need to allow the user to sign in to the store. This is done via "account linking" feature (available both in Alexa and Google Assistant).
To get started with Alexa, go to Alexa Skills Kit Console and in the "Build" section, navigate to "Account Linking" configuration panel.
Then, do the following:
- Enable account linking using the toggle at the top
- Select "Auth Code Grant" as authorization grant type
- Set
https://YOUR_VOICE_APP_ENDPOINT/oauth/authorize
as Authorization URI - Set
https://YOUR_VOICE_APP_ENDPOINT/oauth/token
as Access Token URI - Generate Client ID and Client Secret and set them in appropriate fields
- Keep Client Authorization Scheme set to HTTP Basic
- Click "Save" at the top