From 373d250f25eac74e679c212e01ebd51c23feaa71 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 20 Oct 2017 16:28:53 +0200 Subject: [PATCH] config.py: implement eduPersonTargetedId --- config.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.py b/config.py index 9fbc2f8..c726aff 100644 --- a/config.py +++ b/config.py @@ -136,6 +136,15 @@ AUTHENTICATION_BACKENDS = ( 'django_rbac.backends.DjangoRBACBackend', ) +ATTRIBUTE_SOURCES = [ + ('computed_targeted_id', { + 'name': 'edupersontargetedid', + 'label': 'eduPersonTargetedId', + 'source_attributes': ['service', 'uid'], + 'salt': 'edupersontargetedid', + }) +] + # bypass authentic2 warning: "DEFAULT_FROM_EMAIL must be customized" DEFAULT_FROM_EMAIL = 'root@localhost'