From 7e7803dcd455e7fbf63af3f1329328d71cb791b3 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 14 Sep 2015 21:03:01 +0200 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(-) diff --git a/hobo/agent/authentic2/management/commands/hobo_deploy.py b/hobo/agent/authentic2/management/commands/hobo_deploy.py index 8f99c29..9cdbdd2 100644 --- a/hobo/agent/authentic2/management/commands/hobo_deploy.py +++ b/hobo/agent/authentic2/management/commands/hobo_deploy.py @@ -82,8 +82,8 @@ class Command(hobo_deploy.Command): policy, created = SPOptionsIdPPolicy.objects.get_or_create(name='Default') policy.enabled = True policy.authn_request_signed = False - policy.accepted_name_id_format = ['username'] - policy.default_name_id_format = 'username' + policy.accepted_name_id_format = ['uuid'] + policy.default_name_id_format = 'uuid' policy.save() policy_type = ContentType.objects.get_for_model(SPOptionsIdPPolicy) -- 2.1.4