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
- In Auth0, go to Applications > Applications
- Click Create Application. Select “Regular Web App” for Type Give it a name like “CyberArk SAML”
- Head to Add-Ons. Turn on SAML2Web App:
- 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)
- In Settings of this popup, input your ACS URL from your CyberArk Identity Tenant:
Note – you can find this ACS URL in your CyberArk Identity tenant when creating a new External Identity Provider.
Last thing in Auth0:
- Go to Auth Pipeline > Rules > Create > SAML Attribute Mappings.
Replace the default with the following:
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- Go to Users > External Identity Providers > Add
- Add in the login domains you want to redirect to Auth0 for authentication
- 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.
- Go to Authentication and enter in the following data fields:
You’re done - test it out!