opencdms-dev / legacy-opencdms-api

⭐🐍 OpenCDMS server application written in Python (FastAPI) and exposing a web interface for `opencdms-app` and other applications
MIT License
3 stars 3 forks source link

OpenCDMS user model #41

Open isedwards opened 2 years ago

isedwards commented 2 years ago

The current OpenCDMS user model was originally derived from SURFACE CDMS which uses the standard Django auth_user model.

Is there a record anywhere of how our AuthUser model was created (e.g. which SQL DDL guided the process?) In opencdms_api/models.py (here), is_superuser has default set to True but, in Django this almost certainly would not be the case.

The user model in OpenCDMS will diverge from SURFACE/Django in the future.

faysal-ishtiaq commented 2 years ago

Unfortunately, I do not know about it.

Could you please explain more on how we are going to implement auth for OpenCDMS? When I first implemented opencdms, I implemented jwt with private and public key pair. And kept the auth service separate.

faysal-ishtiaq commented 2 years ago

How about we use something like https://supertokens.com/docs/community/introduction or https://www.ory.sh/open-source for authentication?