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

# oidc-config catalog resource

> Catalog resource that defines the OIDC identity tokens agents can obtain for cloud providers and other services.

An OIDC config defines an identity token an [agent](https://docs.murmur.dev/concepts/agents.md) can obtain and present to a service that trusts your organization's Murmur issuer, such as a Google Cloud workload identity pool. It sets the token's audience, lifetime, subject, and claims. The dashboard lists configs under **Settings → Access & permissions → OIDC configs**.

## Synopsis

```bash theme={null}
murmur get oidc-config [name]
murmur set oidc-config <name> < oidc-config.yaml
murmur rm oidc-config <name>
murmur workload-token --oidc-config <name>
```

Manage this resource with [`murmur get`](https://docs.murmur.dev/cli/get), [`murmur set`](https://docs.murmur.dev/cli/set), and [`murmur rm`](https://docs.murmur.dev/cli/rm). Inside an agent, `murmur workload-token` prints one token under the named config.

## Who can obtain a token

An agent obtains a token under a config only when all of these hold:

* The config's `workspaceUse` admits the agent's workspace.
* The agent holds `oidc-config.mint` on the config, through the config's `grants` or an organization binding. In the dashboard, add the person, group, or service profile as a member in the config's **Access** section.
* The agent's [runtime role](https://docs.murmur.dev/catalog/runtime-role.md) allows it.

Changing `workspaceUse` or `grants` requires `oidc-config.edit` granted organization-wide.

## Audiences

Every config is issued by the same organization issuer. A recipient that trusts an audience accepts tokens from every config that uses it. Give each config its own audience. Murmur does not enforce this; the dashboard shows a warning when an audience matches another config you can read.

## Fields

| Name | Type | Required | Description |
| - | - | - | - |
| `name` | string | yes | Unique name. Inference connections and `murmur workload-token` refer to the config by this name. |
| `description` | string | no | Human-readable description. |
| `audience` | string | yes | Exact `aud` claim, as the recipient expects it. For a Google Cloud workload identity pool, the provider's full resource name: `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL/providers/PROVIDER`. |
| `lifetimeSeconds` | int | yes | Token lifetime, from 60 to 3600 seconds. |
| `reuseMinRemainingSeconds` | int | yes | The least lifetime, in seconds, a token must have left for Murmur to reuse it on a later inference request from the same agent run through the same connection. From 1 to `lifetimeSeconds`. Set it to `lifetimeSeconds` to mint a new token for every request. Workload tokens are not reused. |
| `subject` | enum | yes | What `sub` names. `OIDC_SUBJECT_OWNER`: the agent's owner, `github/USER_ID` for a person or `service_profile/TENANT_ID/NAME` for a service profile. `OIDC_SUBJECT_EXECUTION`: `spawn/SPAWN_ID`, unique to one run. |
| `email` | enum | yes | `OIDC_EMAIL_OMIT`, `OIDC_EMAIL_IF_VERIFIED` (the owner's verified work email when there is one), or `OIDC_EMAIL_REQUIRE_VERIFIED` (no token without one). |
| `claims` | enum\[] | no | Facts about the agent, each under its own claim: `tenant_id`, `workspace_id`, `agent_path`, `spawn_id`, `oidc_config`, `owner`. Each at most once. |
| `constantClaims` | object\[] | no | Up to 8 fixed claims, each a `name` (lowercase letters, digits, and underscores, starting with a letter, at most 64 characters; registered JWT claims, `email`, and fact claims are reserved) and a `value` (1 to 256 printable ASCII characters). |
| `workspaceUse` | object | no | Which workspaces' agents may obtain tokens: `scope` is `WORKSPACE_USE_SCOPE_ALL`, `WORKSPACE_USE_SCOPE_SELECTED` with `workspaces` listed, or `WORKSPACE_USE_SCOPE_NONE`. Unset reads as none. |
| `grants` | object\[] | no | Access grants on this config. For example, grant `oidc-config.mint` to the `murmur-all-members` group to let every member's agents obtain tokens. |

## Example

```yaml theme={null}
name: gcp-deploy
description: Deploys to the production project.
audience: //iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/murmur/providers/murmur
lifetimeSeconds: 600
reuseMinRemainingSeconds: 300
subject: OIDC_SUBJECT_OWNER
email: OIDC_EMAIL_OMIT
claims: [OIDC_FACT_TENANT_ID, OIDC_FACT_WORKSPACE_ID]
workspaceUse:
  scope: WORKSPACE_USE_SCOPE_SELECTED
  workspaces: [deploy]
grants:
  - groups: [murmur-all-members]
    inline:
      permissions: [oidc-config.mint]
```

## Related

* [runtime-role](https://docs.murmur.dev/catalog/runtime-role.md): what an agent may do in Murmur
* [workspace](https://docs.murmur.dev/catalog/workspace.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.