config.py: fix eduPersonTargetedId generation
This commit is contained in:
parent
373d250f25
commit
2896287f85
|
@ -137,10 +137,15 @@ AUTHENTICATION_BACKENDS = (
|
|||
)
|
||||
|
||||
ATTRIBUTE_SOURCES = [
|
||||
('function', {
|
||||
'name': 'entity_id',
|
||||
'dependencies': ['service'],
|
||||
'function': lambda ctx: getattr(ctx.get('service'), 'entity_id', ''),
|
||||
}),
|
||||
('computed_targeted_id', {
|
||||
'name': 'edupersontargetedid',
|
||||
'label': 'eduPersonTargetedId',
|
||||
'source_attributes': ['service', 'uid'],
|
||||
'source_attributes': ['entity_id', 'django_user_username'],
|
||||
'salt': 'edupersontargetedid',
|
||||
})
|
||||
]
|
||||
|
|
Reference in New Issue