0

How can i change these hardcoded ID's CLIENT_ID,CLIENT_SECRET,TENANT_ID in settings.py depending upon the tenants logged in users

I had implemented django SSO using django_auth_adfs. How can i change these ID's value dynamically based on individual users of each tenant logged in

Akram
  • 958
  • 5
  • 11

1 Answers1

0

Try using this package django-extra-settings, it will allow you to separate settings per tenant.

i suggest adding a signal to Client model, that sets those settings after client schema/database is created (make sure you are changing the correct schema/database).

Zkh
  • 490
  • 1
  • 4
  • 16