@@ -443,7 +443,7 @@ class AuthnResponse(StatusResponse):
443
443
def __init__ (self , sec_context , attribute_converters , entity_id ,
444
444
return_addr = None , outstanding_queries = None ,
445
445
timeslack = 0 , asynchop = True , allow_unsolicited = False ,
446
- test = False ):
446
+ test = False , allow_unknown_attributes = False ):
447
447
448
448
StatusResponse .__init__ (self , sec_context , return_addr , timeslack ,
449
449
asynchop = asynchop )
@@ -460,6 +460,7 @@ def __init__(self, sec_context, attribute_converters, entity_id,
460
460
self .session_not_on_or_after = 0
461
461
self .allow_unsolicited = allow_unsolicited
462
462
self .test = test
463
+ self .allow_unknown_attributes = allow_unknown_attributes
463
464
464
465
def loads (self , xmldata , decode = True , origxml = None ):
465
466
self ._loads (xmldata , decode , origxml )
@@ -584,7 +585,8 @@ def get_identity(self):
584
585
logger .debug ("Converts name format: %s" % (aconv .name_format ,))
585
586
586
587
self .decrypt_attributes (_attr_statem )
587
- ava = to_local (self .attribute_converters , _attr_statem )
588
+ ava = to_local (self .attribute_converters , _attr_statem ,
589
+ self .allow_unknown_attributes )
588
590
return ava
589
591
590
592
def _bearer_confirmed (self , data ):
0 commit comments