Projet

Général

Profil

0001-Comply-with-authentic-issue-8257-use-NameID-format-u.patch

Benjamin Dauvergne, 14 septembre 2015 21:05

Télécharger (1,47 ko)

Voir les différences:

Subject: [PATCH] Comply with authentic issue #8257, use NameID format 'uuid'
 (fixes #8264)

We built our deployment script upon a bogus behaviour introduced by the
move to the custom user model in authentic, i.e. that the username
NameID format transmitted the uuid field of the user instead of the
username. This commit restores a sane definition for the default policy.
 hobo/agent/authentic2/management/commands/hobo_deploy.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hobo/agent/authentic2/management/commands/hobo_deploy.py
82 82
            policy, created = SPOptionsIdPPolicy.objects.get_or_create(name='Default')
83 83
            policy.enabled = True
84 84
            policy.authn_request_signed = False
85
            policy.accepted_name_id_format = ['username']
86
            policy.default_name_id_format = 'username'
85
            policy.accepted_name_id_format = ['uuid']
86
            policy.default_name_id_format = 'uuid'
87 87
            policy.save()
88 88

  
89 89
            policy_type = ContentType.objects.get_for_model(SPOptionsIdPPolicy)
90
-