Configure single sign-on
curl --request PUT \
--url https://app.trustivan.com/api/v1/identity/provider \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"config": {},
"client_secret": "<string>",
"enabled": true,
"enforced": true,
"jit_provisioning": true
}
'import requests
url = "https://app.trustivan.com/api/v1/identity/provider"
payload = {
"display_name": "<string>",
"config": {},
"client_secret": "<string>",
"enabled": True,
"enforced": True,
"jit_provisioning": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
config: {},
client_secret: '<string>',
enabled: true,
enforced: true,
jit_provisioning: true
})
};
fetch('https://app.trustivan.com/api/v1/identity/provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/identity/provider"
payload := strings.NewReader("{\n \"display_name\": \"<string>\",\n \"config\": {},\n \"client_secret\": \"<string>\",\n \"enabled\": true,\n \"enforced\": true,\n \"jit_provisioning\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Configure single sign-on
Validated by CONSTRUCTING the provider rather than by a separate list of field checks, so a configuration that saves is one that can authenticate. Every endpoint must be https: an authorization code and a SAML assertion are both bearer credentials.
client_secret absent means UNCHANGED, so an administrator editing the
display name does not have to re-enter it.
Requires identity:manage: owner-only, and not grantable to an API key.
PUT
/
identity
/
provider
Configure single sign-on
curl --request PUT \
--url https://app.trustivan.com/api/v1/identity/provider \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"config": {},
"client_secret": "<string>",
"enabled": true,
"enforced": true,
"jit_provisioning": true
}
'import requests
url = "https://app.trustivan.com/api/v1/identity/provider"
payload = {
"display_name": "<string>",
"config": {},
"client_secret": "<string>",
"enabled": True,
"enforced": True,
"jit_provisioning": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
config: {},
client_secret: '<string>',
enabled: true,
enforced: true,
jit_provisioning: true
})
};
fetch('https://app.trustivan.com/api/v1/identity/provider', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/identity/provider"
payload := strings.NewReader("{\n \"display_name\": \"<string>\",\n \"config\": {},\n \"client_secret\": \"<string>\",\n \"enabled\": true,\n \"enforced\": true,\n \"jit_provisioning\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Body
application/json
Response
The stored configuration.