Docs
Live demo
POST/api/v2/applications/{id}/sign-in/apply

Apply a previously returned Principal-managed Dex OAuth client preview through Dex gRPC.

Parameters

Path1 required of 1
idstring · uuidpathrequired

Application ID (UUID), the id of its target

Request body application/json · ApplicationDexClientApplyRequest

Confirmed Dex OAuth client mutation preview request

Required4 of 5 fields
preview_idstring · uuidrequired
expected_source_hashstringrequired
min length 1
operationstringrequired
createupdateadoptdelete
client_idstringrequired
min length 1 · max length 256
Optional1 field
oidc_setup_contract_versioninteger

Set to 1 to acknowledge one-time native OIDC credential delivery. Required for native-only and combined gate plus native OIDC create.

1

Responses

200

Apply result. Native OIDC create may include a one-time client credential.

ApplicationMutationResultResponse · 7 fields
target_idstring · uuidrequired
application_idstring · uuidrequired
source_hashstring
resource_versionstring
correlation_idstring
appliedbooleanrequired

One-time setup values returned only after native-only or combined gate plus native OIDC create. Combined mode also stores the secret for its gate.

7 fields
issuer_urlstringrequired
discovery_urlstringrequired
client_idstringrequired
client_secretstring

Present only for confidential clients. Never returned by read or preview endpoints.

redirect_urisarray of stringrequired

Application callback URIs. Excludes the SSO gate callback in combined mode.

publicbooleanrequired
scopesarray of stringrequired
403

Principal access denied, or upstream.authorization_failed when upstream credentials lack permissions

409

Conflict - preview is stale, already consumed, or source has changed

502

The upstream service rejected its configured credentials (upstream.authentication_failed) or permissions (upstream.authorization_failed), or Principal could not connect to the target or another service the request needs (upstream.connection_failed). The Principal session remains valid.

Common errors: 400 401 404 413 429 503 504. They mean the same for every operation, see Errors.

↑ ↓ to moveEnter to openEsc to close