Enable Auth0 Single Sign-On for your HappyFox Account

By Prateesh kp 10874 views

This article describes how the Single Sign-On (SSO) integration with Auth0 can be set up.

šŸ”§ Auth0 SSO is achieved using the Custom SAML integration option in HappyFox. 

Using this integration, it's possible to have HappyFox agents and/or end users sign into the respective portals using the same email ID as configured in auth0. 

Available for all pricing plans

Enabling Auth0 Login SSO for your HappyFox account Involves:

Creating an Application in Auth0 and configuring it with Callback URIs.

 

Creating a SAML2 Web app add-on for the Auth0 application.

Installing the Custom SAML app inside HappyFox with the SSO target URL and IDP signature.

šŸ” You need "Manage apps settings" permission to configure this SSO.
āœ… Please ensure "SAML Integration active" drop-down is set to active.

 

Enabling Encrypted SAML assertions:

You can also encrypt your SAML assertions for added security. This configuration is optional. To know more about this configuration inside HappyFox, click here. You'd also have to do some configurations inside Auth0. Here are the steps:

function (user, context, callback) {
  // this rule sets a specific public key to encrypt the SAML assertion generated from Auth0 
  if (context.clientID === 'THE_CLIENT_ID_OF_THE_APP_WITH_THE_SAML_APP_ADDON') {
	  context.samlConfiguration = (context.samlConfiguration || {});
    context.samlConfiguration.encryptionPublicKey = "-----BEGIN PUBLIC KEY-----\nnMIIC8jCCAdqgAwIBAgIJObB6jmhG0QIEMA0GCSqGSIb3DQEBBQUAMCAxHjAcBgNV\n[..all the other lines..]-----END PUBLIC KEY-----\n";
    context.samlConfiguration.encryptionCert = "-----BEGIN CERTIFICATE-----\nnnMIIC8jCCAdqgAwIBAgIJObB6jmhG0QIEMA0GCSqGSIb3DQEBBQUAMCAxHjAcBgNV\n[..all the other lines..]-----END CERTIFICATE-----\n";
	}
  callback(null, user, context);
}

 

Usage

Once the configuration is done, Contacts can click on the Custom SAML button in the Support center login page to initiate the workflow. If Configured, Agents can also click on the Custom SAML button in their agent login page to do the same.

 

🌟 Tip: To Know how to configure Auth0 integration with HappyFox Classic, please refer to the document attached.