You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
caught Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenReadException: IDX13102: Exception thrown while reading 'AttributeValue' for Saml2SecurityToken. Inner exception: 'System.Xml.XmlException: 'Element' is an invalid XmlNodeType. Line 23, position 131.
at System.Xml.XmlReader.ReadEndElement()
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAttributeValue(XmlDictionaryReader reader, Saml2Attribute attribute)'.
---> System.Xml.XmlException: 'Element' is an invalid XmlNodeType. Line 23, position 131.
at System.Xml.XmlReader.ReadEndElement()
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAttributeValue(XmlDictionaryReader reader, Saml2Attribute attribute)
--- End of inner exception stack trace ---
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAttributeValue(XmlDictionaryReader reader, Saml2Attribute attribute)
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAttribute(XmlDictionaryReader reader)
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAttributeStatement(XmlDictionaryReader reader)
at Microsoft.IdentityModel.Tokens.Saml2.Saml2Serializer.ReadAssertion(XmlReader reader)
at Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler.ReadSaml2Token(XmlReader reader)
at Microsoft.IdentityModel.Tokens.Saml2.Saml2SecurityTokenHandler.ReadSaml2Token(String token)
Possible solution
in Saml2Serializer.ReadAttributeValue, read more whitespace after the element start
Which version of Microsoft.IdentityModel are you using?
7.5.0
Where is the issue?
M.IM.Tokens
Is this a new or an existing app?
New (reproduction)
Repro
Expected behavior
Assertion parsed without error
Actual behavior
Possible solution
in Saml2Serializer.ReadAttributeValue, read more whitespace after the element start
or just remove the "helpful" hack and parse the xml normally (not sure why it's in there though, presumably that will break something else).
The text was updated successfully, but these errors were encountered: