> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usechar.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Keycloak

> Configure Keycloak tokens for Char publishable-key embeds

Use Keycloak ID tokens with Char.

## 1) Configure Keycloak in Char

Set issuer/domain and allowed audience values for your realm/application.

## 2) Read token from Keycloak client

```ts theme={null}
const idToken = keycloak.idToken;
```

## 3) Connect

```ts theme={null}
agent.connect({
  publishableKey: "pk_live_...",
  idToken,
});
```

<Card title="Identity Providers Overview" icon="shield" href="/identity-providers/index" />
