Skip to content

Conversation

@jayllon
Copy link

@jayllon jayllon commented Jul 16, 2025

Added AuthRequest and SignutRequest overloads so you can pass a certificate to sign both requests.
Tested against spanish public ID service Cl@ave https://clave.gob.es/clave

Example, you can use:
var signingCertificate = new X509Certificate2("certificate.pfx", String.Empty,
X509KeyStorageFlags.MachineKeySet |
X509KeyStorageFlags.PersistKeySet |
X509KeyStorageFlags.Exportable
);
then
var request = new Saml.AuthRequest( entityId, $"{HttpContext.Request.Scheme}://{HttpContext.Request.Host}/saml/acs",certificadoFirma );

where certificate.pfx has a private key and no password.

…gn the SAML requests

Tested against spanish public ID service Cl@ave https://clave.gob.es/clave
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant