Skip to content

Commit

Permalink
Remove incorrect signing key setter
Browse files Browse the repository at this point in the history
- Those are never used, as the signature is validated separately.
- Those keys are the SP signing keys, not the Idp signing keys.
  • Loading branch information
AndersAbel committed Oct 8, 2018
1 parent bb722e9 commit 9dfacfc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Sustainsys.Saml2/SAML2P/Saml2Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,8 +555,6 @@ private IEnumerable<ClaimsIdentity> CreateClaims(IOptions options)
validationParameters.ValidAudience = options.SPOptions.EntityId.Id;

var handler = options.SPOptions.Saml2PSecurityTokenHandler;
validationParameters.IssuerSigningKeys = options.SPOptions
.ServiceCertificates.Select(x => new X509SecurityKey(x.Certificate));

foreach (XmlElement assertionNode in GetAllAssertionElementNodes(options))
{
Expand Down

0 comments on commit 9dfacfc

Please sign in to comment.