Docs

Get an OAuth settings revision by ID

GET
/oauth_settings/{oauth_settings_id}

Returns one OAuth settings revision, including its stored settings. Pass the revision_id of the kind: oauth pointer on a release, which buildRelease (POST /releases/build) and getRelease (GET /releases/{release_id}) return.

A release is the only writer of OAuth settings, so there is no operation that publishes a revision on its own: put oauth in the bundle that buildRelease takes.

Authorization

headerAuthorizationBearer <token>

Scope: oauth_settings.read

Path Parameters

oauth_settings_id*string

The OAuth settings revision ID: the revision_id of the kind: oauth pointer on the release that buildRelease (POST /releases/build) or getRelease (GET /releases/{release_id}) returns.

Response Body

The OAuth settings revision.

application/json
  1. response

A stored OAuth settings revision. oauth echoes the canonical stored settings, so a client such as the CLI can reconcile local files with the server's stored state.

id*string

The unique identifier of this OAuth settings revision.

created_at*string

When this revision was published.

Formatdate-time
oauth*

The OAuth settings of a project: whether the project's OAuth authorization server answers. It has one shape in two places: the oauth resource of the bundle buildRelease (POST /releases/build) takes, which publishes it as a new immutable revision, and the read-only revision getOAuthSettings (GET /oauth_settings/{oauth_settings_id}) returns.

A release is the only writer: there is no operation that publishes OAuth settings on their own. A release without oauth leaves the authorization server off.

Example Request
import { configureZitadel, getApi } from "@zitadel/api/config";// In the browser, through the SDK proxy: the session cookie authenticates the call.const client = getApi(configureZitadel({ projectId: "proj_01KWH1P4MYS7F0N9WD3P2E4YM5" }));const oAuthSettings = await client.getOAuthSettings("oauthset_01KWHG3M5QZ27F0N9WD3P2E4YM");
Example Response
{  "id": "string",  "created_at": "2019-08-24T14:15:22Z",  "oauth": {    "$schema": "string",    "enabled": true  }}

Was this helpful?