---
title: "PATCH /admin/oidc/providers/{provider_id}"
method: PATCH
path: "/admin/oidc/providers/{provider_id}"
tags: ["Authentication"]
---

# PATCH /admin/oidc/providers/{provider_id}

`PATCH /admin/oidc/providers/{provider_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/admin/oidc/providers/{provider_id}`
- Auth: HTTP bearer

## Path parameters

- `provider_id` integer, required

## Request body

- UpdateOidcProviderRequest
  - `client_id` string, nullable
  - `client_secret` string, password, nullable: A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.
  - `default_role` string, nullable
  - `enabled` boolean, nullable
  - `group_claim` string, nullable
  - `issuer_url` string, nullable
  - `jit_provisioning` boolean, nullable
  - `name` string, nullable
  - `role_claim` string, nullable
  - `scopes` string, nullable
  - `template` string, nullable
  - `trust_idp_email` boolean, nullable

## Response `200`

OIDC provider updated

- OidcProviderResponse
  - `client_id` string, required
  - `client_secret` string, required: Always masked — the secret is never returned after creation.
  - `default_role` string, required
  - `enabled` boolean, required
  - `group_claim` string, required
  - `id` integer, required
  - `issuer_url` string, required
  - `jit_provisioning` boolean, required
  - `managed_by_cloud` boolean, required: ADR-045 §4: true only for the provider Temps Cloud provisions for console access. The admin UI should disable edit/delete controls for such a row — the API itself refuses those requests regardless (`OidcError::ManagedByCloudEdit`/`ManagedByCloudDelete`).
  - `name` string, required
  - `role_claim` string, required
  - `scopes` string, required
  - `template` string, required
  - `trust_idp_email` boolean, required: When true, the resolver skips the `email_verified` claim gate during SSO login. Only safe for IdPs where an admin controls user provisioning — see `oidc_providers::Model::trust_idp_email`.

## Changes

- **2026-10-23** `7d41b820a372`: 2 breaking, 1 info
  - the request property `client_secret` became not nullable
  - the `client_secret` request property type changed from `string, null` to no type
  - added `#/components/schemas/SecretString, subschema #2` to the `client_secret` request property `oneOf` list
- **2026-10-23** `24af93ff5379`: 2 breaking, 1 info
  - removed `#/components/schemas/SecretString, subschema #2` from the `client_secret` request property `oneOf` list
  - the `client_secret` request property type changed from no type to `string, null`
  - the request property `client_secret` became nullable
- **2026-10-22** `842d42ed4659`: 2 breaking, 1 info
  - the request property `client_secret` became not nullable
  - the `client_secret` request property type changed from `string, null` to no type
  - added `#/components/schemas/SecretString, subschema #2` to the `client_secret` request property `oneOf` list
- **2026-10-22** `1a12a50b75ee`: 2 breaking, 1 info
  - removed `#/components/schemas/SecretString, subschema #2` from the `client_secret` request property `oneOf` list
  - the `client_secret` request property type changed from no type to `string, null`
  - the request property `client_secret` became nullable
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/admin/oidc/providers/:provider_id/patch.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
