# Auth0 Setup

### Register an OIDC App in Auth0

#### 1. Log in to Auth0 Dashboard

Go to [https://manage.auth0.com](https://manage.auth0.com/) and sign in to your Auth0 tenant.

#### 2. Navigate to Applications

From the dashboard, go to **Applications > Applications** and click **+ Create Application**.

#### 3. Register the Application

Complete the following fields in the "Create Application" dialog:

* **Name:** Enter a descriptive name for your application (e.g., `Telmai-OIDC-App`).
* **Application Type:** Choose `Regular Web Applications`.

Click **Create**.

#### 4. Configure the Application

After creating the application, configure its settings:

* **Callback URL:** Enter the redirect URI provided by Telmai. This will likely follow the format: `https://<your-telmai-instance>.okta.com/oauth2/v1/authorize/callback`. **Please confirm the exact redirect URL with Telmai.**
* Under **Advanced Settings -> OAuth**:
  * **JSON Web Token (JWT) Signature Algorithm:** Choose `RS256`.
  * **Grant Types:** Select `Implicit`, `Authorization Code`, `Refresh Token`, and `Client Credentials`.

Click **Save Changes**.

#### 5. Enable Supported Connections

Under the **Connections** tab of the application:

* Enable the appropriate database, enterprise, or social login providers that your users will utilize.
* Ensure users are provisioned or available under the selected connection.

Click **Save Changes**.

#### 6. Post-Registration Configuration

Once saved, copy the following details from your application's settings, as you will need them for Telmai's configuration:

* **Client ID**
* **Client Secret**
* **Endpoints -> OAuth -> All the OAuth Endpoints**

***


---

# Agent Instructions: 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:

```
GET https://docs.telm.ai/telmai/authentication-and-access-control/auth0-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
