We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
NameID
1 parent 4a30dc5 commit 547a25dCopy full SHA for 547a25d
src/onelogin/saml2/response.py
@@ -531,6 +531,15 @@ def get_attributes(self):
531
if attr_text:
532
values.append(attr_text)
533
534
+ # Parse any nested NameID children
535
+ for nameid in attr.iterchildren('{%s}NameID' % OneLogin_Saml2_Constants.NSMAP['saml']):
536
+ values.append({
537
+ 'NameID': {
538
+ 'Format': nameid.get('Format'),
539
+ 'NameQualifier': nameid.get('NameQualifier'),
540
+ 'value': nameid.text
541
+ }
542
+ })
543
attributes[attr_name] = values
544
return attributes
545
0 commit comments