gi-kent-content / hca-tuatara

A little python-based web site for helping the wranglers and others track incoming single cell projects as they are brought into HCA. The Tuatara has an extra eye which comes in handy in this project.
MIT License
2 stars 1 forks source link

User and Social accounts added #46

Closed willrockout closed 3 years ago

willrockout commented 3 years ago

In this PR I've added the ability to log in and sign up from the main site using either custom user/password or social accounts specifically Google. This was done by utilizing a third-party app called Django-AllAuth which has been added to the requirements file. AllAuth adds quite a few features and HTML templates. I've customized the signup, login, and base template for AllAuth. The testing procedure will require a few manual inputs that I've listed below:

  1. First pull the branch and install the new requirement file (development for dev and production for prod).
  2. Next you will need to run a migrate to add the database changes that are staged by the installation of AllAuth. These include adding tables related to social accounts, sites, and accounts.
  3. Last you'll need to add social account and site information in the admin view. Reach out to me for specific details as I'll need to provide a client id, secret key as well as add your dev port to the URI/URI redirect list.