Save OIDC settings
PUT
/api/v1/instance/oidc
const url = 'https://example.com/api/v1/instance/oidc';const options = { method: 'PUT', headers: { cookie: 'ttx_access_token=<ttx_access_token>', 'X-CSRF-Token': '<X-CSRF-Token>', 'Content-Type': 'application/json' }, body: '{"allow_jit":false,"client_id":"example","client_secret":"example","display_name":"example","enabled":true,"entra_tenant_id":"example","issuer_url":"example","provider_kind":"entra","trust_provider_mfa":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/instance/oidc \ --header 'Content-Type: application/json' \ --header 'X-CSRF-Token: <X-CSRF-Token>' \ --cookie ttx_access_token=<ttx_access_token> \ --data '{ "allow_jit": false, "client_id": "example", "client_secret": "example", "display_name": "example", "enabled": true, "entra_tenant_id": "example", "issuer_url": "example", "provider_kind": "entra", "trust_provider_mfa": true }'Recorded (without the secret), with step-up: whoever chooses the provider chooses who can sign in.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
OidcSettingsUpdateRequest
object
allow_jit
Allow Jit
boolean
client_id
required
Client Id
string
enabled
Enabled
boolean
provider_kind
Provider Kind
string
trust_provider_mfa
Trust Provider Mfa
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
OidcSettingsRead
Platform -> Single sign-on. Never carries the client secret:
has_client_secret says whether one is stored, client_secret_readable
whether the current key still decrypts it.
object
active
required
Active
boolean
allow_jit
Allow Jit
boolean
client_secret_readable
Client Secret Readable
boolean
configured
required
Configured
boolean
enabled
Enabled
boolean
has_client_secret
Has Client Secret
boolean
linked_accounts
Linked Accounts
integer
pinned_by_env
required
Pinned By Env
boolean
trust_provider_mfa
Trust Provider Mfa
boolean
Example
{ "allow_jit": false, "client_secret_readable": true, "enabled": false, "has_client_secret": false, "linked_accounts": 0, "provider_kind": "entra", "trust_provider_mfa": true}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}