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'],