Reputation: 85
I have been been able to setup cognito login with user pool external federated identity providers (Facebook and Google). This then gets me an access token and id token. I can then use those tokens with the aws-sdk.
I was wondering if I can use those tokens to authenticate the user with amazon-cognito-identity-js instead? As far as I can tell, you must use their username and password when authenticating.
Upvotes: 2
Views: 1766
Reputation: 81464
No. Facebook and Google are Identity Providers. Amazon Cognito User Pools is also an Identity Provider. Cognito Federated Identities uses Identity Providers (Facebook, Google, Cognito User Pools) to provide authentication.
Upvotes: 1