> For AI agents: [llms.txt](https://docs.trustedauth.com/llms.txt) provides a Markdown index of this documentation.

# MuleSoft

MuleSoft offers an integration platform helping businesses connect data, applications and devices across on-premises and cloud computing environments (see <https://www.mulesoft.com/>). You can protect access to MuleSoft by integrating MuleSoft with Identity as a Service. Once integrated, users can use single sign-on to log in to their MuleSoft account through Identity as a Service.

warning

This integration was tested using Identity as a Service version 5.14 and MuleSoft Anypoint Platform Private Cloud Edition 3.0.0. Other versions of MuleSoft may require integration and configuration steps that differ from those documented in this procedure. For other versions of MuleSoft, use this procedure as a starting point for integrating MuleSoft. In the event of other issues, contact <support@entrust.com> for assistance.

## Step 1: Copy the SAML Configurations from Identity as a Service

1. Log into your Identity as a Service administrator account.

2. Click Menu icon **>** **Security > Applications**. The **Applications** **Lists** page appears.

3. Under **SAML Cloud Integrations**, click **SAML Configuration**. The **SAML Configuration** dialog box appears.

   This dialog box contains information you need to configure your SAML application for Identity as a Service authentication.

4. Do one of the following:

   - Leave this dialog box open to reference later in this procedure.
   - Copy the Entity ID, Single Sign-on URL, and Single Logout URL to a text file and save it to reference later in this procedure.

note

Depending on the integration you are performing, you may not need all three of these SAML configuration values.

## Step 2: Export the signing certificate from Identity as a Service

1. Log in to your Identity as a Service administrator account.
2. Click Menu icon **>** **Security > Applications**. The **Applications List** page appears.
3. Under **SAML Cloud Integrations**, click **SAML Signing Certificates**. The **SAML** **Signing Certificates** page appears.
4. Click the download icon next to the certificate to export the certificate you want to import into your SAML service provider application. The **Export Certificate** dialog box appears.
5. If the certificate has been issued by a CA, do one of the following:
   - Click **Certificate** to export the self-signed certificate.
   - Click **Root CA Certificate** to export a certificate issued from a CA.
   - Click **Certificate Chain** to export the SAML signing certificate and its CA certificates.
6. Click **Export**.

## Step 3: Add Identity as a Service as an Identity Provider in MuleSoft

1. Log in to your MuleSoft Anypoint Platform as an administrator. The **Anypoint Platform** page appears.

2. Click Menu icon **>** **Access Management**. The **Access Management** page appears.

3. Click **Organization**. The **Organization** page appears.

4. Click **Add Business Group**. The **Organization info** dialog box appears.

5. Enter the following organization information:

   - **Name**
   - **Domain**
   - **Owner**
   - **Client id provided by to you by MuleSoft**
   - **Client Secret**

6. Optional: Modify the **Default session timeout.**

7. Click **Save.**

8. In the **Access Management** menu, click **Identity Providers**. The **Identity Providers** drop-down list appears.

9. Select **SAML 2.0** from the **Identity Providers** drop-down list. The **Identity Provider Configuration** page appears.

10. In the **Sign-On URL** field, enter the **Single Sign-On URL** you copied from _Step 1: Copy the configuration from Identity as a Service_.

11. In the **Sign Off URL** field, enter the **Single Logout URL** you copied from _Step 1: Copy the configuration from Identity as a Service_.

12. In the **Issuer** field, enter the **Entity ID** you copied from _Step 1: Copy the configuration from Identity as a Service_.

13. Open the certificate file that you downloaded in _Step 2: Export the signing certificate from Identity as a Service_.

14. In the **Public Key** field, paste the contents of the signing certificate.

15. In the **Audience** field, enter the string that identities your Anypoint Platform organization.

    Example: <organizationDomain>.anypoint.mulesoft.com where organizationDomain is the Domain you entered in step 5e.

16. For the **Single Sign-On initiation**, select **Both**.

17. Click **Create**.

## Step 4: Download the metadata from MuleSoft Anypoint

1. Log in to your MuleSoft Anypoint Platform as an administrator. The **Anypoint Platform** page appears.
2. Click Menu icon **>** **Access Management**. The **Access Management** page appears.
3. In the **Access Management** menu, click **Identity Providers**. The **Identity Providers** page appears.
4. Click **Edit** next to **SAML 2.0**. The **Identity Provider Configuration** page appears.
5. Click **Anypoint service provider metadata**. The metadata downloads in an XML file format. You need this file for _Step 5: Add MuleSoft to Identity as a Service_.

## Step 5: Add MuleSoft to Identity as a Service

1. Log into your Identity as a Service administrator account.

2. Click Menu icon **>** **Security > Applications**. The **Applications** **Lists** page appears.

3. Click **Add**. The **Select an Application Template** page appears.

4. Do one of the following:

   - Select **SAML Cloud Integrations** from the search drop-down list and scroll to find the application you want to add to IDaaS.
   - In the **Search bar**, enter a search option to filter for the application you want to add to IDaaS.

5. Click **MuleSoft**. The **Add MuleSoft** page appears.

6. Enter an **Application Name**.

7. Enter an **Application Description**.

8. Optional. Add a custom application logo.

   1. Click Circle Plus icon next to **Application Logo**. The **Upload Logo** dialog box appears.
   2. Click Upload icon to select an image file to upload.
   3. Browse to select your file and click **Open**. The **Upload Logo** dialog box reappears showing your selected image.
   4. If required, resize your image.
   5. Click **OK**.

9. Select the **Authentication Flow** that appears to users during login.

10. Click **Next**. The **General** page appears.

11. Click Upload icon to the **Upload Metadata XML** and browse to the location of the metadata file you downloaded. The **Metadata Configuration** dialog box appears.

12. If required, click **Merge with existing values** to merge new values with existing values for Alternative Assertion Consumer Services URLs and SAML attribute names.

13. Click **Save**.

14. Optional. Enter the **SAML Username Parameter Name** used to identity the user ID being requested for authentication. The user ID can then be passed as a parameter, for example, Username=jdoe. Alternately, if the SAML username is NameID, the SAML Request XML NameID element value is used to the identify the IDaaS userID.

15. Enter the **SAML Session Timeout** to the time when the SAML Assertion times out. The maximum is 720 minutes.

16. From the **SAML NameID Attribute** drop-down list, select **Email**.

17. From the **SAML NameID Encoding Format** drop-down list, select **Unspecified**.

18. Select the **SAML Signing Certificate** from the drop-down list.

19. Select **Sign Complete URL Response**.

20. Deselect **Enable Go Back Button** if you do not want users to be able to go back to the MuleSoft login page to log in.

21. Select **Show Default Assertion Consumer URL Service in the My Profile**. When selected, the Default Assertion Consumer URL appears in a user's My Profile page in addition to relay states and Alternative Assertion Consumer URLs.

22. Optional. Select **Encrypt SAML Assertion**. If you select this option, do the following:

    1. From the **Encryption Method for Key** drop-down list. select **RSA-OAEP**.
    2. Click Upload icon **Encryption Certificate File** and browse to select the Mule Soft certificate file used to encrypt the SAML assertion.

23. Optional. Add **Alternative Assertion Consumer Service URLs**, as follows:

    1. Click **Add**.
    2. Enter a **Name**.
    3. Enter a URL **Value**.
    4. Select **Show in My Profile** to display the Alternative Consumer Service URL in a user's My profile page.
    5. Optional. **Add an Application Logo**.
    6. Click **Add**.
    7. Repeat these steps to add more Alternative Assertion Consumer Service URLs.

24. Add a **Relay State**, as follows:

    1. Under **Relay State** click **Add**. The **Add Relay State** dialog box appears.
    2. Enter a **MuleSoft Anypoint** as the **Name** for the relay state.
    3. Copy the **Assertion Consumer Service URL** and paste it in the **Value** field for the relay state. This setting specifies the application or URL that a user is redirected to after successful authentication. The Relay states appear on the user's My Profile page.
    4. Optional. Add a Relay State custom logo.
       1. Click Circle Plus icon next to **Relay State Logo**. The **Upload Logo** dialog box appears.
       2. Click Upload icon to select an image file to upload.
       3. Browse to select your file and click **Open**. The **Upload Logo** dialog box reappears showing your selected image.
       4. If required, resize your image.
       5. Click **OK**.
    5. Click **Add**.
    6. Repeat these steps to add more Relay States.

note
After you add relay states, you can also enable or disable them on the Add/Edit application page. Click the disable icon next to the relay state to disable it or click the enable icon to re-enable it. Relay states apply to the Default Assertion Consumer Service URLs and not the Alternative Consumer Service URLs.

25. Include the user attributes for email, firstname, and lastname in the SAML assertion, as follows:

    1. Add an **email** user attribute
       1. Under **SAML Attributes**, click **Add**. The **SAML Attributes** dialog box appears.
       2. Enter email in the **Name** field.
       3. Click **Add** next to **Value(s)**.
       4. In the **Values** field type **<** and select **<Email>** to include a user's email every time the user authenticates to the application.
       5. Click **Add**.
    2. Add a **first name** user attribute.
       1. Under **SAML Attributes**, click **Add**. The **SAML Attributes** dialog box appears.
       2. Enter first name in the **Name** field.
       3. Click **Add** next to **Value(s)**.
       4. In the **Values** field type **<** and select **<First Name>** to include a user's first name every time the user authenticates to the application.
       5. Click **Add**.
    3. Add a **last name** user attribute.
       1. Under **SAML Attributes**, click **Add**. The **SAML Attributes** dialog box appears.
       2. Enter last name in the **Name** field.
       3. Click **Add** next to **Value(s)**.
       4. In the **Values** field type **<** and select **<Last Name>** to include a user's Last Name every time the user authenticates to the application.
       5. Click **Add**.

26. Click **Submit**.

## Step 6: Add a resource rule

See [Create resource rules](/docs/authentication-and-security/create-and-manage-resource-rules.md).

## Step 7: Test the integration

### Testing Service Provider Login

1. Open a Web browser and enter the URL for your MuleSoft Anypoint account. You are directed to Identity as a Service.
2. Enter your MuleSoft Anypoint account **User ID** and click **Next**.
3. Respond to the second-factor authentication challenge. If you respond successfully, you are logged in to the MuleSoft Anypoint **Home** page.

### Testing Identity as a Service redirect log in

1. Log in to your Identity as a Service account.
2. Go to your **My Profile** page if you are not already there.
3. Under **Applications**, click **MuleSoft Anypoint**.
4. Respond to the second-factor authentication challenge. If you respond successfully, you are logged into MuleSoft Anypoint.
