> For the complete documentation index, see [llms.txt](https://docs.catalyx.solutions/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.catalyx.solutions/catalyx-blockchain-manager/canton-network/version-1.11/installation-instructions-canton/external-identity-provider-configuration-optional/auth0-setup-guide.md).

# Auth0 Setup Guide

## Configuring Auth0 for CatalyX

### 1. CatalyX API (Resource Server)

Navigate to **Applications → APIs → Create API** and configure:

* **Name:** CatalyX
* **Identifier (Audience):** `<audience>`

### 2. UI Client

Create a new application with type **Single Page Application** and configure:

* **Grant types:** Authorization Code, Refresh Token
* **Allowed Callback URLs:** `<UI url>`, `<UI url>/domains`, `<UI url>/participants`
* **Allowed Logout URLs:** same three URLs as above

The UI client requests the `<audience>` on login.

### 3. API Client

Create a new application with type **Regular Web Application** and configure:

* **Grant types:** Client Credentials, Authorization Code, Refresh Token

### 4. Connect Both Clients to the CatalyX API

Go to **APIs → CatalyX → Machine to Machine Applications**, enable both the UI and API clients, and grant their respective scopes.

| Client | Application Type        | Grant Types                                           | Has Client Secret |
| ------ | ----------------------- | ----------------------------------------------------- | ----------------- |
| UI     | Single Page Application | Authorization Code; Refresh Token                     | No                |
| API    | Regular Web Application | Client Credentials; Authorization Code; Refresh Token | Yes               |

### Example Helm Value Overrides

{% code title="helm-values.yaml" %}

```yaml
api:
  extraEnv:
    AUTH_ROLES: "false"
    AUTH_AUDIENCE: "<audience>" # Comes from identifier of Auth0 API

ui:
  extraEnv:
    AUTH_ROLES: "false"
    AUTH_AUDIENCE: "<audience>" # Comes from identifier of Auth0 API

auth:
  enabled: true
  keycloak:
    enabled: false
  url: "https://dev-2bsf8p5hbjadzwh4.us.auth0.com/" # Example URL
  client:
    idApiOperator: "<API Client ID>"
    idUI: "<UI client ID>"
    secret: "<API secret>"
```

{% endcode %}

## Configuring Auth0 for Validator

To configure Auth0 resources for a validator, follow the [Kubernetes Validator Deployment](https://docs.canton.network) guide. Resources should be created under the CatalyX API.

{% hint style="info" %}
Callback URLs and Logout URLs can be added after CatalyX deploys Wallet and CNS resources and generates the URLs.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.catalyx.solutions/catalyx-blockchain-manager/canton-network/version-1.11/installation-instructions-canton/external-identity-provider-configuration-optional/auth0-setup-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
