bansalbhavin avatar image
bansalbhavin asked

account linking - unable to link your skill

I will start with initial.

I am working with one Smart Home Skill. I have implement APIs at my end to communicate with IoT wifi enabled device. I am using lambda as an interface to communicate with API. My Lambda function is also working fine, I have tested all possible usecase implemented in lambda with sample JSON and can see the final outcome on device. So there is no issue in API and Lambda.

I have also designed Login page and authorization API(for Access Toekn) as mentioned in official documentation. Right now skill is in testing mode I have not applied for publishing as I want to test first all the stuff. Now when I go to skill and click enable skill, application redirects me to the Login page designed by me. In this login I am redirecting to provided redirect URL with state & code in query string. I have checked redirect URL which is also fine. Which is as below


So as per my understanding after being redirected AWS will internally call Authorization URL to get Access Toekn using which it can communicate further. But here I am geting error as below

"An error occurred while attempting to link alexa with the external provider"

How can I check what is the error as I have now no clue whats is not working? Do I need to implement some code in Lamda for authorization(I think I do not really need as Lambda will be responsible for handling device related stuff).

My server is also HTTPS enabled. Can you please guide me what needs to be done now? I am having cert for HTTPS from GoDaddy and api is also hosted on GoDaddy only.

Any help is really appreciated.

alexa skills kitalexaalexa smart homeaccount linking
10 |5000

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

Amazon Customer avatar image Amazon Customer commented ·

i also met this problem, did u have any answer?

0 Likes 0 ·
Amazon Customer avatar image Amazon Customer Amazon Customer commented ·

my email is, if u fixed it, pls share to me, ths...

0 Likes 0 ·
bansalbhavin avatar image bansalbhavin commented ·

Can anyone give any input on this issue?

0 Likes 0 ·

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Thanks for posting! The message you are seeing is related to the certificate you are using. While you can use any certificate (including self-signed one) while developing a skill that does not have account linking, once you add account linking, you must use a supported certificate, even during development/testing. Although the documentation says that you can use any certificate signed by the Amazon-approved certificate authority:, at this time regrettably only a subset of those is supported. As I mentioned previously in several other forum threads, you can either provision a different certificate (for example, certificates from DigiCert, Thawte, Entrust, and Verisign will work) or you can use Login With Amazon as a temporary OAuth2 provider. Thanks!

10 |5000

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

bansalbhavin avatar image bansalbhavin commented ·

Hi Levon,

So as per my understanding the only issue is with GoDaddy certs. So if replace GoDaddy certs with one of any above mentioned certs it will start working. Correct me If I am wrong.

I can not use Login with Amazon at present due to some technical constrain at our end.

Waiting for your utmost response.

0 Likes 0 ·
bansalbhavin avatar image bansalbhavin commented ·

Hi @Levon@Amazon,

As per your comment we have uploaded certs from DigiCert.

We are using sub domain for this. The main domain is still using GoDaddy certs. While we have separately installed DigiCert's certificate for sub domain. So please guide me if there are still other changes required from our end in order to make it working. I can see that there is no any other request coming related access token in my log files.

As there is no any other control in our hand, hence it is not possible for us to resolve the issue and so we required prompt response from your end.

Waiting for your quick response.

0 Likes 0 ·
bansalbhavin avatar image bansalbhavin bansalbhavin commented ·

The issue is resolved. I am able to link the account.

0 Likes 0 ·
ChrisWang avatar image ChrisWang bansalbhavin commented ·

Hi @bansalbhavin , could you please share how you resolved this issue?

Just change the certificate from GoDaddy to DigiCert and the problem solved?

0 Likes 0 ·

@Levon@Amazon Is there any timeframe for having the proper certificate support? We are not at liberty to go around replacing the certificates on our public facing oauth servers.

0 Likes 0 ·
rec avatar image rec commented ·

Is there any documents about how to with Login With Amazon in Smart Home Skills?

0 Likes 0 ·