question

alejandro avatar image
alejandro asked ·

How to implement Alexa-app only linking account flow with PHP server?

For the skill that I'm developing right now I want the next work flow:

1. Customer enable my skill

2. He get requested to link his account

3. When he click the link he get redirect to my web app and a login page appear

4. He authenticate on my site with the credentials I provide to him

5. The skill get linked successfully

I search on the Alexa documentation I found that the previous process is called Alexa-app only linking flow.

I already implement the login with amazon account way using: Alexa Account Linking: 5 Steps to Seamlessly Link Your Alexa Skill to User Systems That Require Authentication : Alexa Blogs (amazon.com)

But I want to use my own PHP authentication server instead of login with amazon.

I found some examples but they are on JAVA or using Auth0, how I can implement this in my PHP server?

Have someone a link or repository or tutorial to do it?, in conclusion i want to link an alexa user with a user in my system

Thanks for the help

alexa skills kitalexa
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Jason@Amazon avatar image
Jason@Amazon answered ·

We don't have any specific examples for PHP, but you can check out this sample below:

https://github.com/alexa-samples/alexa-oauth-sample

10 |2000 characters needed characters left characters exceeded

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