- Newest
- Most votes
- Most comments
Based on the information you've provided, your token response structure appears to be correct. The JSON format with "access_token", "refresh_token", "token_type", and "expires_in" matches the expected format for OAuth token responses.
Since you're able to successfully authenticate and receive the token response, but encounter the "Unable to link the skill at this time" error afterward, here are some potential issues to check:
-
Token Format: While your token structure is correct, ensure there are no extra spaces, special characters, or formatting issues in the actual response. The access token and refresh token values should be properly formatted strings.
-
Content-Type Header: Make sure your token endpoint is returning the response with the correct Content-Type header (application/json).
-
CORS Settings: If applicable, verify that your endpoint has the proper CORS (Cross-Origin Resource Sharing) headers configured to allow requests from Alexa's domains.
-
Token Length: You mentioned generating a 32-byte access token and 64-byte refresh token. While these lengths should be fine, some systems might have specific requirements. Try checking if there are any token length limitations in the Alexa documentation.
-
Permissions in Alexa Developer Console: For permissions configuration, check the "Permissions" section in your Alexa skill configuration. Ensure that any required permissions for account linking are enabled.
-
Skill Configuration: Double-check that your skill's account linking configuration in the Alexa Developer Console exactly matches your authentication service settings, including authorization URL, token URL, client ID, and client secret.
-
Testing Environment: If you're testing in development mode, ensure that your development endpoints are publicly accessible and that all security certificates are valid.
If the issue persists, I would recommend checking your server logs during the account linking attempt to see if there are any specific errors being returned that could provide more insight into what's failing during the process.
Sources
Unable to link Alexa skill with my mobile application in AWS (Dev mode testing) | AWS re:Post
answered a year ago
Relevant content
- AWS OFFICIALUpdated a month ago
