---
title: "Setting up OpenID Connect in MuleSoft Anypoint"
description: "Tutorial for setting up MuleSoft Anypoint with the Curity Identity Server for user authentication via OpenID Connect."
url: "https://curity.io/resources/learn/mulesoft-anypoint/"
date: "2020-02-27"
area: "tutorials"
topic: "howtos"
pagegroup: "integrations"
---

# Setting up OpenID Connect in MuleSoft Anypoint

[MuleSoft Anypoint](https://www.mulesoft.com/) is a platform for complete API lifecycle management. The platform supports OpenID Connect as part of its identity management. This tutorial shows how to setup Anypoint Platform to enable authentication through OpenID Connect using the Curity Identity Server.

## Setting up OpenID Connect in MuleSoft Anypoint

After logging in to the Anypoint Platform with an administrator account, click **Access Management** and then **External Identity**.

![Mulesoft1](https://curity.io/images/resources/operate/tutorials/integration/mulesoft/mulesoft1.png)

-   Enable **Identity Management** and select **OpenID Connect**. Then click **Edit** to set it up.
-   Click **Use manual registration** and copy the redirect URI.
-   Now setup a client in the Curity Identity Server.

### Curity Setup

MuleSoft Anypoint Platform needs a client. It should be configured like this:

-   Authentication method: `secret`. Store the secret.
-   Capabilities: `Code Flow`
-   Following scopes: `openid`, `profile` and `email`
-   Choose suitable authentication methods.
-   Add redirect URI copied from Anypoint Platform.

More information in [Code Flow](https://curity.io/resources/learn/code-flow/#setup-in-curity) tutorial.

### Continue MuleSoft Anypoint Setup

Enter the client ID and client secret from the client configuration in the Curity Identity Server.

![Mulesoft2](https://curity.io/images/resources/operate/tutorials/integration/mulesoft/mulesoft2.png)

Then you need to enter some of the endpoints configured in the Curity Identity Server.

| Setting | Curity endpoint type | Sample (Base URL + endpoint) |
| --- | --- | --- |
| OpenID Connect Issuer | oauth-anonymous | `https://example.com/oauth/anonymous` |
| Authorize URL | oauth-authorize | `https://example.com/oauth/authorize` |
| Token URL | oauth-token | `https://example.com/oauth/token` |
| User Info URL | oauth-userinfo | `https://example.com/oauth/userinfo` |

### Use external identities

You can now start using the external identities by letting the users access Anypoint Platform via the SSO URL, for example `https://anypoint.mulesoft.com/accounts/login/{yourOrgDomain}`

As an administrator, you can later assign users to roles to set up the permission you want.
