Développement #4981
Management command to create tenants from portail-admin
0%
Description
(more background in my "portail admin, 1st draft" email, dated March 25th 2014)
The master portail-admin instance expose a list of portail-admin as /hobos.json, it's a simple list of base URLs. (you can use a single portail-admin instance and it will also advertise itself in that file, to make it easier to start developing).
For each of those URLs, there is a /environment/installed_services.json, that contains the list of configured services, for example:
[ { "base_url": "http://ma-ville.example.net", "id": 1, "service-id": "authentic", "slug": "idp-de-ma-ville", "title": "Ma ville" } ]
The management command should then create appropriate tenants for matching services.
Related issues
History
Updated by Benjamin Dauvergne over 10 years ago
- Project changed from Authentic 2 to Portail admin
- Patch proposed set to No
I seems to me that the job is common to all Django project that will need to deploy tenants from hobo, could the job be done in a Django app living in hobo (maybe called hobo), we could relocate the tenant middleware and template loaders from python-entrouvert there also. It would centralize all code needed to make multi-tenant Django app at EO.