Skip to content
Console
Menu

Getting Started

Authentication

KV Store

sylphx auth oauth_clients

Every sylphx auth oauth_clients command: its argument, its flags and a run line.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

The oauth_clients commands of Sylphx Auth, as the CLI spells them: the same calls as the oauth_clients API page, typed for the shell. Install, sign in and the grammar are on the CLI index.

#get

Gets an OAuth client.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx auth oauth-clients get orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client · scope auth:read · effect read · Request, response and examples

#list

Lists OAuth clients.

PARENT — optional: the CLI fills it from the linked project or the key's scope when it is left out.

CLI

Shell
sylphx auth oauth-clients list orgs/acme/projects/shop/envs/production

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/oauth_clients · scope auth:read · effect read · Request, response and examples

Flags

FlagTypeWhat it does
--page-sizeintAt most this many; default 50, clamped to 1000.
--page-tokenstringnext_page_token of the previous page.
--filterstringAIP-160 filter over labels and filterable fields.
--order-bystringAIP-132 ordering over filterable fields.

#create

Creates an OAuth client.

ID — The id segment of the new Resource's name; the server assigns one when omitted.

CLI

Shell
sylphx auth oauth-clients create --parent orgs/acme/projects/shop/envs/production --spec.client-type confidential --spec.token-endpoint-auth-method none

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/oauth_clients · scope auth:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--parentstringThe parent to create in; defaults to the linked project or the key's scope.
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.client-typeenumConfidential or public. Required. One of confidential, public.
--spec.token-endpoint-auth-methodenumHow the client authenticates at the token endpoint. Required. One of none, client_secret_basic, private_key_jwt.
--spec.redirect-urisstringExact redirect URIs. Repeat the flag for each value.
--spec.grant-typesenumAllowed grants. Required. Repeat the flag for each value. One of authorization_code, refresh_token, device_code, client_credentials.
--spec.scopesstringScopes the client may request. Repeat the flag for each value.
--spec.jwks-uristringThe client's JWKS URI, for private_key_jwt.
--spec.dpop-requiredboolRequire DPoP-bound tokens (RFC 9449).
--spec.access-token-ttldurationAccess token lifetime; default 1h.
--spec.refresh-token-ttldurationRefresh token lifetime; default 30d.
--dry-runboolValidate and print the result without writing (validate_only).

#update

Updates an OAuth client.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx auth oauth-clients update orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client --spec.token-endpoint-auth-method none

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client · scope auth:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--meta.labelskey=valueCaller-writable, indexed labels (AIP-122 label rules). Repeat the flag for each value.
--meta.annotationskey=valueCaller-writable, unindexed annotations. Repeat the flag for each value.
--meta.display-namestringCaller-writable human-readable name.
--spec.token-endpoint-auth-methodenumHow the client authenticates at the token endpoint. Required. One of none, client_secret_basic, private_key_jwt.
--spec.redirect-urisstringExact redirect URIs. Repeat the flag for each value.
--spec.grant-typesenumAllowed grants. Required. Repeat the flag for each value. One of authorization_code, refresh_token, device_code, client_credentials.
--spec.scopesstringScopes the client may request. Repeat the flag for each value.
--spec.jwks-uristringThe client's JWKS URI, for private_key_jwt.
--spec.dpop-requiredboolRequire DPoP-bound tokens (RFC 9449).
--spec.access-token-ttldurationAccess token lifetime; default 1h.
--spec.refresh-token-ttldurationRefresh token lifetime; default 30d.
--allow-missingboolCreate the OAuth client when it does not exist (declarative upsert).
--dry-runboolValidate and print the result without writing (validate_only).

#delete

Deletes an OAuth client.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx auth oauth-clients delete orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client --yes

DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client · scope auth:write · effect destructive · Request, response and examples

Flags

FlagTypeWhat it does
--etagstringDelete only if the current etag matches.
--allow-missingboolSucceed when the OAuth client does not exist.
--dry-runboolValidate and print the result without writing (validate_only).
--yesboolDo not ask before this destructive call.

#roll-secret

Issues a new client secret, returned once; the old one verifies until grace_period ends.

NAME — the resource's name; a bare id is enough below the linked project.

CLI

Shell
sylphx auth oauth-clients roll-secret orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/oauth_clients/oauth-client:rollSecret · scope auth:write · effect write · Request, response and examples

Flags

FlagTypeWhat it does
--grace-perioddurationHow long the old secret keeps verifying; default 24h.
--etagstringAct only if the current etag matches.
--dry-runboolValidate and print the result without writing (validate_only).