@@ -443,12 +443,20 @@ def create_authn_response(self, identity, in_response_to, destination,
443
443
444
444
445
445
try :
446
+ _authn = {"authn_auth" : authn }
447
+ if "authn_decl" in kwargs and kwargs ["authn_decl" ]:
448
+ _authn ["decl" ] = kwargs ["authn_decl" ]
449
+ if "class_ref" in kwargs and kwargs ["class_ref" ]:
450
+ _authn ["class_ref" ] = kwargs ["class_ref" ]
451
+ else :
452
+ _authn ["class_ref" ] = None
453
+
446
454
return self ._authn_response (in_response_to , # in_response_to
447
455
destination , # consumer_url
448
456
sp_entity_id , # sp_entity_id
449
457
identity , # identity as dictionary
450
458
name_id ,
451
- authn = authn ,
459
+ authn = _authn ,
452
460
issuer = issuer ,
453
461
policy = policy ,
454
462
sign_assertion = sign_assertion ,
@@ -467,8 +475,9 @@ def create_authn_request_response(self, identity, in_response_to,
467
475
468
476
return self .create_authn_response (identity , in_response_to , destination ,
469
477
sp_entity_id , name_id_policy , userid ,
470
- name_id , authn , authn_decl , issuer ,
471
- sign_response , sign_assertion )
478
+ name_id , authn , issuer ,
479
+ sign_response , sign_assertion ,
480
+ authn_decl = authn_decl )
472
481
473
482
#noinspection PyUnusedLocal
474
483
def create_assertion_id_request_response (self , assertion_id , sign = False ,
0 commit comments