django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

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

Open anitstack opened this issue 3 years ago • 2 comments

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.

anitstack avatar Sep 08 '20 04:09 anitstack

I have a very similar problem.

pktiuk avatar Nov 16 '21 14:11 pktiuk

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

pktiuk avatar Nov 19 '21 12:11 pktiuk