Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!

question

newuser-1b0693e9-09f2-43b8-a2f1-996a1891c11b avatar image

We were unable to link eZLODevelopment at this time.

I am having issues when I setup for the account linking.

SkillId: amzn1.ask.skill.8aefc001-b863-4e2d-aa26-0004ffefcab1

AccountLinkingType: AuthCode

Device/Type platform: Browser

AuthorizationUrl: https://ezlo.com/alexa/

Whitelisted Domains: ezlo.com

The request from Amazon Alexa when I try to link account:

https://ezlo.com/alexa/?client_id=ezloclient&response_type=code&state=A2SAAEAEAkTXsz5-P62i6dh7Eq_1l8BkLP3KidDIMjjhoUUuH3dVd3V-nfdMa9bxgp6ghtc3pP-sYP-s0d8gqxfhLruYACtvQarcw5USjThijvrln8XDDm0vNpNDGeELh6F8GlzxUch_jqJBHmCzADf-7zBEwJbXVxRoM6ijkNdfQmLJHwl-mqcz51Sr_s6wK3NAf1ZaTWN4G_lR_1dsFxA2oJa2SKcJuk13zAbYTlhgjnshz3-9KdvlsDWnEHe2lnqBz6c-ncCb_wWtN3-Y9xcmOWVcp0HW0sPJ83Mhg8p_51mFAQtHj8_waPFSoXoGwb7MjTRQZma1MJEfrMX5xYvKCUsObOmRSgxdSQA1xjU5432uhpqUf5mH3xAUavuetOxSr5SL3OmFZ262oLtyiFaSc7BNmDEwyLzVP04n4kspz5r9bYOh4A3bJY0vW5I-ejgsKDSkM-voWntBoBd3k-jLpO6k1DFgc16vPZ-_pVqUW0kJ38To_q8BOwfNS-Y1dZvyZxL-Ao3Fb42cmc_7tUq6IMqY71ghSeXt_2YSZuF1m2sz153wSw≻ope=ezlo&redirect_uri=https%3A%2F%2Fpitangui.amazon.com%2Fapi%2Fskill%2Flink%2FM2X3TA7BIFY3N6

After the authorization code is generated, we call the below url:

https://pitangui.amazon.com/api/skill/link/M2X3TA7BIFY3N6/?code=24533ecce156d02c834081e351ae37b905e75c6f&state=A2SAAEAEAkTXsz5-P62i6dh7Eq_1l8BkLP3KidDIMjjhoUUuH3dVd3V-nfdMa9bxgp6ghtc3pP-sYP-s0d8gqxfhLruYACtvQarcw5USjThijvrln8XDDm0vNpNDGeELh6F8GlzxUch_jqJBHmCzADf-7zBEwJbXVxRoM6ijkNdfQmLJHwl-mqcz51Sr_s6wK3NAf1ZaTWN4G_lR_1dsFxA2oJa2SKcJuk13zAbYTlhgjnshz3-9KdvlsDWnEHe2lnqBz6c-ncCb_wWtN3-Y9xcmOWVcp0HW0sPJ83Mhg8p_51mFAQtHj8_waPFSoXoGwb7MjTRQZma1MJEfrMX5xYvKCUsObOmRSgxdSQA1xjU5432uhpqUf5mH3xAUavuetOxSr5SL3OmFZ262oLtyiFaSc7BNmDEwyLzVP04n4kspz5r9bYOh4A3bJY0vW5I-ejgsKDSkM-voWntBoBd3k-jLpO6k1DFgc16vPZ-_pVqUW0kJ38To_q8BOwfNS-Y1dZvyZxL-Ao3Fb42cmc_7tUq6IMqY71ghSeXt_2YSZuF1m2sz153wSw

I am getting this and have I done something wrong with the configuration?

I did set up another Smart Home Skills and it worked fine at that moment.

Is it because of the root CA that was used for ssl setup?

alexa skills kitalexa smart homeaccount linkingalexa for businessalexa skills challenge
1 comment
10 |5000

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

Do we require the same email address in amazon DB and in eZLOD (in your case) server to verify testing?

0 Likes 0 ·
Jenn@amazon avatar image
Jenn@amazon answered

Do you see the request to your Access Token endpoint?

If so, please share the Body of the Response from the Access Token Request.

10 |5000

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

newuser-e5dd286b-3f4c-42d9-ac70-10146cbb5e6a avatar image
newuser-e5dd286b-3f4c-42d9-ac70-10146cbb5e6a answered

Did you get a solution for this one?

10 |5000

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

KasitaTech avatar image
KasitaTech answered

I had trouble with this as well. The weird thing is that amazon is sending query string style parameters but x-www-form-urlencoded in the post BODY. So you have to read the body but don't expect JSON.

POST /authentication/1/oauth HTTP/1.1 url.Values{} grant_type=authorization_code&code=XXXXXXXXXXXXXXXXXXXXXXXXX&redirect_uri=https%253A%252F%252Fpitangui.amazon.com%252Fapi%252Fskill%252Flink%252FM9BEOG3DM65SQ&client_id=XXXXXXXXXXXXXXXXXXXXXX

    Also weird is that they're expecting a 200 response from a POST. Our custom framework was set up to always return a 201 for a POST, which really is what a POST should return, but that will break things. We had to rejigger our framework to return a 200 just for this one use case.

    10 |5000

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