Skip to content

SAML assertion decryption is broken when using SetSPKeyStore #260

Description

@pfatyga

When using the new SetSPKeyStore function to set the keystore, RetrieveAssertionInfo is unable to decrypt a valid encrypted saml assertion. The reason for this is the getDecryptCert function does not consider using spKeyStoreOverride, it only looks at SPKeyStore which is now deprecated.

The call stack looks like the following:

sp.RetrieveAssertionInfo(samlData)
    sp.ValidateEncodedResponse(encodedResponse)
        sp.decryptAssertions(...)
            sp.getDecryptCert()     <----- fails here if sp.SPKeyStore == nil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions