Skip to content

Attribute Statement List being incompletely read #24

@TheDarkTrumpet

Description

@TheDarkTrumpet

Hello,

I came across a recent issue, and am looking into it a bit more but figured I'd report it here first.

While I got the library to work with what I need, the big issue that I'm running into is an incomplete list of assertions being pulled.

The assertions being read from the breakpoint are, in order:
eduPersonEntitlement
uid
eduPersonScopedAffiliation
eduPersonTargetedID

The others available are in the raw xml below, but it stops around DisplayName. My guess is that is being seen as an invalid attribute, and stops reading.

The assertion list, that comes from SAMLTracer is below (some private information removed):

<saml2:AttributeStatement>
     <saml2:Attribute FriendlyName="eduPersonEntitlement"
          Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.7"
          NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
           >
            <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:type="xsd:string"
               >urn:mace:dir:entitlement:common-lib-terms</saml2:AttributeValue>
      </saml2:Attribute>
      <saml2:Attribute FriendlyName="uid"
            Name="urn:oid:0.9.2342.19200300.100.1.1"
            NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
            >
            <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:type="xsd:string"
                                      >dthole</saml2:AttributeValue>
            </saml2:Attribute>
        <saml2:Attribute FriendlyName="eduPersonScopedAffiliation"
             Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.9"
             NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
             >
            <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:type="xsd:string"
                      >affiliate@unc.edu</saml2:AttributeValue>
               <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:type="xsd:string"
                      >member@unc.edu</saml2:AttributeValue>
            </saml2:Attribute>
       <saml2:Attribute FriendlyName="eduPersonTargetedID"
               Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.10"
               NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
               >
                <saml2:AttributeValue>
                    <saml2:NameID Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"
                                  NameQualifier="https://sso.unc.edu/idp"
                                  SPNameQualifier="https://dev.newview.io/saml"
                                  >REMOVED</saml2:NameID>
                </saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute FriendlyName="displayName"
                             Name="urn:oid:2.16.840.1.113730.3.1.241"
                             NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
                             >
                <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:type="xsd:string"
                                      >David Thole</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute FriendlyName="sn"
                             Name="urn:oid:2.5.4.4"
                             NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
                             >
                <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:type="xsd:string"
                                      >Thole</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute FriendlyName="givenName"
                             Name="urn:oid:2.5.4.42"
                             NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
                             >
                <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:type="xsd:string"
                                      >David</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute FriendlyName="pid"
                             Name="urn:oid:1.3.6.1.4.1.10411.3103.1.1.1.1"
                             NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
                             >
                <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:type="xsd:string"
                                      >NUMBERREMOVED</saml2:AttributeValue>
            </saml2:Attribute>
            <saml2:Attribute FriendlyName="eduPersonPrincipalName"
                             Name="urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
                             NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
                             >
                <saml2:AttributeValue xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                                      xsi:type="xsd:string"
                                      >dthole@unc.edu</saml2:AttributeValue>
            </saml2:Attribute>
        </saml2:AttributeStatement>

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions