Search code examples
djangoamazon-web-servicesweb-applicationsamazon-cognito

Create users using AWS Cognito and Django


I'm making an application using Django (Backend) and ReactJS (Frontend). The application will be hosted on AWS. I want to use AWS Cognito to allow users to login to the site.

I'm trying to find out whether users can create accounts/sign up directly from my app instead of me manually creating one in the AWS User Pool.

I know that there is support for this on Android, iOS and JavaScript.

Is there a way to do this on Django as well? I am unable to find a library that allows me to do this.

If not, is there a recommended similar service like AWS Cognito that can be used with Django?

Any suggestions would be appreciated.


Solution

  • Yes. You can create users from the Django app. First your need to experiment on boto3 Cognito idp at Django shell. After learning about the required parameters, you can easily add users to pool from Django.

    I am sharing on-hand experience to integrate Cognito with Django with implementing my own library.