Project

General

Profile

Développement #4981

Management command to create tenants from portail-admin

Added by Frédéric Péters over 10 years ago. Updated over 10 years ago.

Status:
Rejeté
Priority:
Normal
Category:
-
Target version:
-
Start date:
17 June 2014
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:

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

Is duplicate of Python Entrouvert - Développement #5106: Gestion des tenants "sans modèle"Fermé07 July 2014

Actions

History

#1

Updated by Benjamin Dauvergne over 10 years ago

  • Assignee set to Benjamin Dauvergne
#2

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.

#3

Updated by Frédéric Péters over 10 years ago

  • Project changed from Portail admin to Hobo
#4

Updated by Frédéric Péters over 10 years ago

  • Status changed from Nouveau to Rejeté

Also available in: Atom PDF