· Jun 13

Handling encrypted SAML assertions in response

We've implemented SAML authentication for our application where we are the service provider and various other entities are the identity providers. We've done successful connections with several identity providers including Okta, Duo Mobile, Ping Identity, and Azure. Validating the SAML response with signed assertions has been working great. Now, I am trying implement support for the SAML assertions in the response being encrypted for a new identity provider and struggling to understand procedurally how to go about this. From the sample XML below, I assume I need to decrypt the <CipherData> element under <EncryptedKey> then use that decrypted key to decrypt the <CipherData> that's a child of <EncryptedData>. I'm at a loss as to how we actually go about doing that. Has anyone done this in CoS or have some general advice on how to proceed? Thanks!

   <saml:EncryptedAssertion xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion">
       <xenc:EncryptedData Type="" xmlns:xenc="">
           <xenc:EncryptionMethod Algorithm=""/>
           <ds:KeyInfo xmlns:ds="">
                   <xenc:EncryptionMethod Algorithm=""/>
Product version: Caché 2018.1
$ZV: Cache for Windows (x86-64) 2018.1.4 (Build 504U) Thu May 14 2020 14:20:15 EDT
Discussion (0)1
Log in or sign up to continue