Skip to content

Instantly share code, notes, and snippets.

@lurodrig
Created March 30, 2021 16:11
Show Gist options
  • Save lurodrig/5e2959779d4d53b092d45d7ff46a8eaf to your computer and use it in GitHub Desktop.
Save lurodrig/5e2959779d4d53b092d45d7ff46a8eaf to your computer and use it in GitHub Desktop.
SAMLResponse signature part from keycloak IdP server
<dsig:Signature xmlns:dsig="http://www.w3.org/2000/09/xmldsig#">
<dsig:SignedInfo>
<dsig:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<dsig:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<dsig:Reference URI="#ID_9f51892d-e2a1-40ff-af6a-c00d577ce908">
<dsig:Transforms>
<dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
<dsig:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<dsig:DigestValue>XXXX</dsig:DigestValue>
</dsig:Reference>
</dsig:SignedInfo>
<dsig:SignatureValue>XXXX</dsig:SignatureValue>
<dsig:KeyInfo>
<dsig:KeyName>XXXX</dsig:KeyName>
<dsig:X509Data>
<dsig:X509Certificate>XXX</dsig:X509Certificate>
</dsig:X509Data>
<dsig:KeyValue>
<dsig:RSAKeyValue>
<dsig:Modulus>XXX</dsig:Modulus>
<dsig:Exponent>XXX</dsig:Exponent>
</dsig:RSAKeyValue>
</dsig:KeyValue>
</dsig:KeyInfo>
</dsig:Signature>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment