Projet

Général

Profil

Development #4981

Management command to create tenants from portail-admin

Ajouté par Frédéric Péters il y a presque 10 ans. Mis à jour il y a plus de 9 ans.

Statut:
Rejeté
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
17 juin 2014
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
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.


Demandes liées

Duplique Python Entrouvert - Development #5106: Gestion des tenants "sans modèle"Fermé07 juillet 2014

Actions

Historique

#1

Mis à jour par Benjamin Dauvergne il y a presque 10 ans

  • Assigné à mis à Benjamin Dauvergne
#2

Mis à jour par Benjamin Dauvergne il y a presque 10 ans

  • Projet changé de Authentic 2 à Portail admin
  • Patch proposed mis à Non

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

Mis à jour par Frédéric Péters il y a presque 10 ans

  • Projet changé de Portail admin à Hobo
#4

Mis à jour par Frédéric Péters il y a plus de 9 ans

  • Statut changé de Nouveau à Rejeté

Formats disponibles : Atom PDF