How do I use Amazon Cognito as user authentication for my website (NOT mobile app)

Nate picture Nate · Jul 10, 2014 · Viewed 49.3k times · Source

How can I use AWS-Cognito for user authentication in a web app (not IOS or Android app)?

Amazon cognito just came out:

http://aws.amazon.com/cognito/

http://aws.amazon.com/about-aws/whats-new/2014/07/10/introducing-amazon-cognito/

From the FAQ:

Q: Do I still need my own backend authentication and identity systems with Amazon Cognito?

No. Amazon Cognito supports login through Amazon, Facebook and Google, as well as providing support for unauthenticated users. With Amazon Cognito you can support federated authentication, profile data sync store and AWS access token distribution without writing any backend code.

It seems to be built with mobile apps in mind (they provide SDKs for android and IOS).

So far the AWS php SDK and boto don't reference Cognito, but Amazon mentions "back-end API's" that we can hit.

Answer

Bob Kinney picture Bob Kinney · Jul 11, 2014

One of the developers for Amazon Cognito here.

To expand on JeffersonBe's answer, API docs for both the Identity and Sync services in Amazon Cognito are available on our documentation website.

Additionally, a number of the AWS SDKs have already been updated to support Amazon Cognito:

With more coming soon.

Thanks for your interest. If you have other questions or encounter issues, please post additional questions here on SO or over at our new dedicated Cognito forum.