Authenticating Users with Amazon Cognito - AWS SDK for .NET (version 3)

This content focuses on .NET Framework and ASP.NET 4.x. It covers Windows and Visual Studio.

Working with .NET Core or ASP.NET Core? Go to the content for version 3.5 or later of the AWS SDK for .NET. It covers cross-platform development in addition to Windows and Visual Studio.

Authenticating Users with Amazon Cognito

Using Amazon Cognito Identity, you can create unique identities for your users and authenticate them for secure access to your AWS resources such as Amazon S3 or Amazon DynamoDB. Amazon Cognito Identity supports public identity providers such as Amazon, Facebook, Twitter/Digits, Google, or any OpenID Connect-compatible provider as well as unauthenticated identities. Amazon Cognito also supports developer authenticated identities, which let you register and authenticate users using your own backend authentication process, while still using Amazon Cognito Sync to synchronize user data and access AWS resources.

For more information on Amazon Cognito, see the Amazon Cognito Developer Guide

The following code examples show how to easily use Amazon Cognito Identity. The Amazon Cognito Credentials Provider example shows how to create and authenticate user identities. The Amazon CognitoAuthentication Extension Library example shows how to use the CognitoAuthentication extension library to authenticate Amazon Cognito user pools.