Integrating Auth0 as an external Identity Provider to Idira Identity

Integrating Auth0 as an external Identity Provider to Idira Identity

94
Created On 11/10/26 11:02 AM - Last Modified 11/10/26 16:10 PM


Objective


Users can log into Idira Identity with Auth0 as the Identity Provider (IDP). This article will provide the steps to integrate Auth0, as an external Identity Provider, with Idira Identity via SAML. 

Environment


21.1;21.2;21.3;21.4;21.5;21.6;21.7;21.8;21.9;21.10;21.11;21.12;22.1;22.2;22.3;22.4;22.5;22.6 Identity

Procedure


Add new SAML settings in Auth0

  1. In Auth0, go to Applications > Applications
Graphical user interface, application, Teams  Description automatically generated
  1. Click Create Application. Select “Regular Web App” for Type Give it a name like “CyberArk SAML”
  2. Head to Add-Ons. Turn on SAML2Web App:

Graphical user interface, application  Description automatically generated
 
  1. Under Usage pop-up after turning on SAML, download the SAML metadata (You will use this SAML metadata in step 3 of the CyberArk Identity tenant setup)
Graphical user interface, text, application, email  Description automatically generated
  1. In Settings of this popup, input your ACS URL from your CyberArk Identity Tenant:
Auth0 callback.png


Note – you can find this ACS URL in your CyberArk Identity tenant when creating a new External Identity Provider.
Auth0 External IDP.png


Last thing in Auth0:
 
  1. Go to Auth Pipeline > Rules > Create > SAML Attribute Mappings.


Graphical user interface, text, application, email  Description automatically generated

Replace the default with the following:

Text  Description automatically generated


Script text:

function mapSamlAttributes(user, context, callback) {
  context.samlConfiguration.mappings = {
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier':
      'email',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress':
      'email',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/email':
      'email',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/mail':
      'email',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/UserPrincipalName':
      'email',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name': 'name',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/food':
      'user_metadata.favorite_food',
    'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/address':
      'app_metadata.shipping_address'
  };

  callback(null, user, context);
}



Now, you’re done with Auth0! Head to CyberArk Identity Tenant Settings.

Adding Auth0 as an external Identity Provider in CyberArk Identity

In CyberArk Identity
  1. Go to Users > External Identity Providers > Add
  2. Add in the login domains you want to redirect to Auth0 for authentication
Graphical user interface, application  Description automatically generated
  1. Go to Inbound Metadata > Upload IdP configuration from a file. Browse, select and upload the SAML Metadata file you previously downloaded from your Auth0 tenant.
Graphical user interface, text, application, chat or text message  Description automatically generated
  1. Go to Authentication and enter in the following data fields:

Graphical user interface, text, application  Description automatically generated

You’re done - test it out!
 


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001XoVCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail