Alexa, Unable to link your skill

I am creating custom skill in Alexa which uses account linking. I have created my own authentication server using OAuth2 php library and I have configured the authorization url and token urls in skill configuration.

When I try account linking from Alexa mobile app, I get error 'unable to link your skill'. following is my work progress.

  • Alexa app is able to open my authentication url.
  • I am able authorize and provide authorization code with redirect uri.
  • Alexa is requesting for access token using authorization code previously provided.
  • I am able validate authorization code and response back with access token and refresh token.
  • Alexa fails in this step to link with my skill. It say's 'Unable to link your skill'.
  • I have gone through my forums about the same, but couldn't find what exactly the issue is. Could any one please help me out in this regard.


    If your redirect link is currently:

    https://layla.amazon.com/api/skill/link/xxxxxxxxxxxxxx?code=xxxxxxxxx&state=xxxxx

    You need to change the ? to a #

    eg

    https://layla.amazon.com/api/skill/link/xxxxxxxxxxxxxx#code=xxxxxxxxx&state=xxxxx


    I was facing the same issue too , the problem was solved by selecting "credentials in request body" (default being Http basic) for "Client Authentication Scheme", since the access token in my case was sent in the body of the message. Check how the authentication token is sent by your server.


    在我的情况下,问题出在客户端的秘密,在谷歌开发者控制台中添加您的技能重定向URI并重新检查您在alexa技能授权授予类型中提供的客户端秘密

    链接地址: http://www.djcxy.com/p/95262.html

    上一篇: 手风琴在Bootstrap 4崩溃中不起作用

    下一篇: Alexa,无法链接你的技能