Skip to content

Commit

Permalink
Let CanReadToken return True for EncyptedAssertion
Browse files Browse the repository at this point in the history
EncryptedAssertions will be supported so CanRead token
shoud return true if a SAML2 token has an EncryptedAssertion element.
  • Loading branch information
GeoK authored and brentschmaltz committed May 27, 2020
1 parent a9a4da0 commit bd54a1c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ public override bool CanReadToken(XmlReader reader)
if (reader == null)
return false;

return reader.IsStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace);
return (reader.IsStartElement(Saml2Constants.Elements.Assertion, Saml2Constants.Namespace)
|| reader.IsStartElement(Saml2Constants.Elements.EncryptedAssertion, Saml2Constants.Namespace));
}

/// <summary>
Expand Down

0 comments on commit bd54a1c

Please sign in to comment.