> ## 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.

# Custom OIDC

> Configure any OIDC provider for Char publishable-key embeds

Use any OpenID Connect provider that issues standards-compliant ID tokens.

## Requirements

* Valid issuer URL
* Discovery/JWKS endpoint
* Audience values configured in Char

## Integration pattern

```ts theme={null}
const idToken = await getIdTokenFromYourProvider();

agent.connect({
  publishableKey: "pk_live_...",
  idToken,
});
```

## Validation checks

Char validates:

* Signature via JWKS
* Issuer match
* Audience match
* Expiration

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