Chicago

AWS Cognito identity provider with ASP NET Core

There is this cool project from AWS that I recomend checking out!

ASP.NET Core Identity Provider for Amazon Cognito simplifies using Amazon Cognito as a membership storage solution for building ASP.NET Core web applications using ASP.NET Core Identity.

Check out the repo here!

And do not miss the sample repo here, they implement a wide range of functionality.

I have successfully implemented this on a project running in production. I will cover some Gotchas below.

Be mindful of the number of requests that you are sending to Cognito, have a sound strategy if you plan to list users. I have encountered some TooManyRequests exceptions when my setup in Cognito was less then optimal. Read more about Cognito Quotas here.

Not everything is implemented yet in this library, be sure to follow the development of this project. I ran into some issues when querying users by Claim. I had to find a Claim that I could actually query- and start using it. 

Really think through your Cognito setup- there are a handful of settings that are irreversible. And I can't find a good migration strategy from one Cognito pool to another.