Projet

Général

Profil

Development #10599

saml auth: extend provision_attribute to all user attributes

Ajouté par Frédéric Péters il y a environ 8 ans. Mis à jour il y a plus de 7 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
Début:
08 avril 2016
Echéance:
% réalisé:

100%

Temps estimé:
Patch proposed:
Non
Planning:

Description

For the moment provision_attribute will setattr() the various attributes; this only works for model attributes (first_name, last_name, email).

Révisions associées

Révision e1789615 (diff)
Ajouté par Benjamin Dauvergne il y a presque 8 ans

auth_saml: allow provisionning all attributes from SAML attributs (fixes #10599)

A new mellon setting named A2_ATTRIBUTE_MAPPING must be used, whose syntax is:

MELLON_A2_ATTRIBUTE_MAPPING = [
        {
'attribute': 'email',
'saml_attribute': 'mail', # value from the Name attribute of the saml:Attribute node
'mandatory': True, # optional boolean, if True and attribute is missing, SSO will be refused
},
]

Historique

#1

Mis à jour par Mikaël Ates il y a presque 8 ans

  • Version cible mis à 2.2.0
#2

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

  • Tracker changé de Bug à Development
  • Assigné à mis à Benjamin Dauvergne
#3

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

  • Statut changé de Nouveau à Résolu (à déployer)
  • % réalisé changé de 0 à 100
#4

Mis à jour par Benjamin Dauvergne il y a plus de 7 ans

  • Statut changé de Résolu (à déployer) à Fermé

Formats disponibles : Atom PDF