To verify the signature of the SAML response, the code calls the method IsValid(), which in turn calls signedXml.CheckSignature(_certificate, true), with _certificate being a X509Certificate2 object.
Instead of such a X509Certificate2 object, I'm getting handed a SecurityKeyIdentifierClause object from the System.IdentityModel.Tokens namespace. Is it possible to use this clause to verify the signature of the SAML response?
To verify the signature of the SAML response, the code calls the method
IsValid()
, which in turn callssignedXml.CheckSignature(_certificate, true)
, with_certificate
being aX509Certificate2
object.Instead of such a
X509Certificate2
object, I'm getting handed aSecurityKeyIdentifierClause
object from theSystem.IdentityModel.Tokens
namespace. Is it possible to use this clause to verify the signature of the SAML response?