Get an OAuth settings revision by 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.
AuthorizationBearer <token>Scope: oauth_settings.read
oauth_settings_id*stringThe 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.
The OAuth settings revision.
application/json- 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*stringThe unique identifier of this OAuth settings revision.
created_at*stringWhen this revision was published.
date-timeoauth*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.
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");{ "id": "string", "created_at": "2019-08-24T14:15:22Z", "oauth": { "$schema": "string", "enabled": true }}Was this helpful?