[Bug] Microsoft.IdentityModel.Xml.XmlUtil.GetXsiTypeAsQualifiedName searches 'Type' attribute instead of 'type' #1873
Labels
Bug
Product is not functioning as expected
Customer reported
Indicates issue was opened by customer
Good First Issue
This is a good item for new team members
P2
High, but not urgent. Needs to be addressed within the next couple of sprints
Milestone
Which version of Microsoft.IdentityModel are you using?
Microsoft.IdentityModel.Tokens.Saml 6.18
Where is the issue?
Is this a new or an existing app?
New app
Repro
Saml2.xml
Expected behavior
Token should be read successfully.
Actual behavior
Fails with following exception:
Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenReadException
HResult=0x80131500
Message=IDX13119: An abstract element was encountered which does not specify its concrete type. Element name: '[PII of type 'System.String' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]' Namespace: '[PII of type 'System.String' is hidden. For more details, see https://aka.ms/IdentityModel/PII.]'
Source=Microsoft.IdentityModel.Tokens.Saml
StackTrace:
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadConditions(XmlDictionaryReader reader) in /_/src/Microsoft.IdentityModel.Tokens.Saml/Saml2/Saml2Serializer.cs:line 879
Possible solution
Fix typo in XmlSignatureConstants.Attributes.Type.
The text was updated successfully, but these errors were encountered: