We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 615bb73 commit 397cfc8Copy full SHA for 397cfc8
1 file changed
src/onelogin/saml2/response.py
@@ -591,6 +591,19 @@ def get_attributes(self):
591
if attr_text:
592
values.append(attr_text)
593
594
+ # Parse encrypted ids
595
+ for encrypted_id in attr.iterchildren('{%s}EncryptedID' % OneLogin_Saml2_Constants.NSMAP['saml']):
596
+ key = self.__settings.get_sp_key()
597
+ encrypted_data = encrypted_id.getchildren()[0]
598
+ nameid = OneLogin_Saml2_Utils.decrypt_element(encrypted_data, key)
599
+ values.append({
600
+ 'NameID': {
601
+ 'Format': nameid.get('Format'),
602
+ 'NameQualifier': nameid.get('NameQualifier'),
603
+ 'value': nameid.text
604
+ }
605
+ })
606
+
607
# Parse any nested NameID children
608
for nameid in attr.iterchildren('{%s}NameID' % OneLogin_Saml2_Constants.NSMAP['saml']):
609
values.append({
0 commit comments