bernardopires / django-tenant-schemas

Tenant support for Django using PostgreSQL schemas.
https://django-tenant-schemas.readthedocs.org/en/latest/
MIT License
1.45k stars 425 forks source link

need to use centralized authentication (django.contrib.auth) #656

Open anitstack opened 3 years ago

anitstack commented 3 years ago

Hi, My purpose is to create a multitenant application able to serve several companies. The requirements that I need is to have centralized authentication (django.contrib.auth) in order to have a central login page where after the user has correctly logged in, it will be redirected to the correct subdomain/schema. Each company will manage its own users but I want them to be stored in the public schema because I need to access also remotely using Web services to a centralized and fixed URL. In addition to that, I've to extend the User Model to add additional information. So in my public tenant, I want to have: Company User (django.contrib.auth)

please help me out in this with your suggestion or any documents will be helpful for me.

pktiuk commented 2 years ago

I have a very similar problem.

pktiuk commented 2 years ago

This approach requires storing user data in shared app. This issue may be linked with https://github.com/bernardopires/django-tenant-schemas/issues/346