Configure Auth0 to Send Encrypted SAML Assertion with Custom Keys
Last Updated:
Overview
Applies To
- Auth0 as SAML IdP
Solution
However, it is only supported to use rules/actions to configure custom keys for the SAML assertion encryption:
- Rules
- Action
exports.onExecutePostLogin = async (event, api) => {
if (event.client.client_id === 'CLIENT_ID_1') {
api.samlResponse.setEncryptionCert('SAML_SP_CERT');
api.samlResponse.setEncryptionPublicKey('SAML_SP_PUB_KEY');
}
}