From 8400de2ce0f78fb3917e7e2d42c2d9f410e65a58 Mon Sep 17 00:00:00 2001 From: pix666 Date: Fri, 7 Feb 2020 10:15:51 +0400 Subject: [PATCH] Fix "attribute_mapping" in build_authn_response() --- djangosaml2idp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangosaml2idp/views.py b/djangosaml2idp/views.py index 17db789..fa7ebc3 100644 --- a/djangosaml2idp/views.py +++ b/djangosaml2idp/views.py @@ -173,7 +173,7 @@ def build_authn_response(self, user, authn, resp_args, processor: BaseProcessor, authn_resp = self.IDP.create_authn_response( authn=authn, - identity=processor.create_identity(user, sp_config.get('attribute_mapping')), + identity=processor.create_identity(user, sp_config['config'].get('attribute_mapping')), name_id=name_id, userid=user_id, sp_entity_id=sp_config['id'],