question

newuser-4e25da21-c71f-4c2e-b2ef-4280e48be2da avatar image

What are the steps to link Alexa skill to user system that requires user authentication?


Step 1: Create a login with Amazon Security Profile

First of all, create an LWA profile for your Alexa skill.


Step 2: Configure account linking in the Alexa Developer Console

After doing successful login and user verification processes, under the build tab, go to account linking, and check the “Do you allow the user to create an account or link to an existing account with you?”


Step 3: write your custom skill code

Write your Alexa custom skill code, I prefer to use the Node.Js and then deploy it on AWS Lamba.


Step 4: Test account linking on your skill

When you invoke skill from your device, a card will be received by you in the Alexa app which will be asking you to link your account.


Step 5: Invoke the skill again

Invoke the skill again. Now, because your account is linked, an Amazon OAuth Token is included in the input JSON document.



alexalamba
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Gaetano@Amazon avatar image
Gaetano@Amazon answered

Hello and thanks for posting.

Do you need any help on the account linking process?

Please note that LWA is not mandatory: if your authentication provider supports the OAuth2 framework, then you can directly use their security profile.

Kind regards,
Gaetano

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.