question

uwpse1 avatar image
uwpse1 asked

Get Cognito ID from federated ID access token

Using the Alexa Smart Home skill, the discovery request contains the access token of the user's account, in our case a Google identity.

Is it possible to use this access token to get the Cognito ID of the same user?

In our case, the user has already signed in with that account and has been added to the Cognito identity pool. The user authenticates the skill on the Alexa app with credentials by signing in on the same client_id. The Alexa request sends us a valid Google access token that can be used to get the user's information.

Everything we see in the documentation require the identity_id to get a Cognito ID.

Otherwise, is there an alternative method to authenticate Alexa Smart Home users through Cognito?

lambdaaccount linkingsmart homeaccount information
10 |5000 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.

1 Answer

Tsuneki@Amazon avatar image
Tsuneki@Amazon answered

Hi there,

My apologies for delayed response.

Do you still face the issue?

10 |5000 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.