question

steven avatar image
steven asked ·

Alexa Smart Home Skill, failed to linking account.

Dear ALL,

I'm going to make a Smart Home Skill on Alexa, but we were failed in the Account Linking part. I have created my skill and completed the configuration part such the Account Link URL, Access Token URI... and something else.

During our testing, our authorization server got client_id, state, response_type, scope and redirect_url successfully. But since we return our code & state by redirect the redirect_url that given by AMAZON, we didn't receive any access token request in our Access Token URI endpoint server, and the explorer just shows "An error occurred while attempting to link Alexa with the external provider. Please try again later.".

I found some solutions in the forum that saying this issue is due to the self-signed SSL certificate, so we are using the SSL certificate signed by COMODO now, but the error still happened. Can we get more information or any solutions here?

Here is my configuration: Account Link URL: https://www.XXXXXX.com/cgi-bin/login.cgi

Redirect URL:https://pitangui.amazon.com/api/skill/link/M1A5XXXXXXXX3N

Access Token URI:https://www.XXXXXX.com/cgi-bin/oauth2/accessToken

and here is my authorization code reply:

https://pitangui.amazon.com/api/skill/link/M1A5XXXXXX3N?state=eyJpbml...24iOjF9&code=rJHEx...Yh3L23rj9A3r

Is anyone got same issue and solved it?

alexa skills kitalexa smart homeaccount linkingssl
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.

NickG@Amazon avatar image
NickG@Amazon answered ·

Hi,

Does this appear on all platforms? Specifically in the mobile app versus the desktop website (alexa.amazon.com)

1 comment
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.

Hi, @NickG@Amazon

Thanks for your reply.

Yes, we have tested on iPad, iPhone and Window PC.

Our access token URI didn't receive any access token request from AMAZON.

0 Likes 0 ·
Ikkysleepy avatar image
Ikkysleepy answered ·

What credential auth are you using? If you are using Client Authentication Scheme try changing it to Credentials in Request Body on your Skill. Also verify that the Client ID and Client Secret are being sent to your server.

1 comment
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.

I have try both of credential auth, but still can't receive access token request.

0 Likes 0 ·
steven avatar image
steven answered ·

We change our SSL certificate to DigiCert now, their tech service says that their certificate can work with AMAZON's servers. However, this issue still existed, so I tried to modify my "state" parameter to a wrong value, and I found that it won't show any error message but a white web page. If this means that AMAZON's servers can receive our parameter and check it, why we still can't get the access token request after we using the approved certificate.

Anyone can help us to tracing this?

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.

WangChao@Amazon avatar image
WangChao@Amazon answered ·

Hi Steven,

Could you please run a scan on your server with some tools like https://www.ssllabs.com/ssltest/index.htmland see if there are any potential risks?

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.