Update Sso
PUT
/api/governance/sso
const url = 'http://localhost:8000/api/governance/sso';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"allowed_domains":["example"],"auto_provision":false,"client_id":"","client_secret":"","default_role":"viewer","enabled":false,"enforce_sso":false,"issuer":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8000/api/governance/sso \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "allowed_domains": [ "example" ], "auto_provision": false, "client_id": "", "client_secret": "", "default_role": "viewer", "enabled": false, "enforce_sso": false, "issuer": "" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
OidcUpdate
object
allowed_domains
Allowed Domains
Array<string>
auto_provision
Auto Provision
boolean
client_id
Client Id
string
client_secret
Client Secret
string
default_role
Default Role
string
enabled
Enabled
boolean
enforce_sso
Enforce Sso
boolean
issuer
Issuer
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation 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
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}