Begin an enterprise single sign-on login
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/sso/start \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"relay_state": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/sso/start"
payload = {
"email": "jsmith@example.com",
"relay_state": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', relay_state: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/sso/start', 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/auth/sso/start"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"relay_state\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}Begin an enterprise single sign-on login
Resolves an email address to the organization that should handle it and returns where to send the browser.
The email’s DOMAIN decides the tenant, and only a domain that tenant PROVED it controls routes anywhere. Letting the caller name an organization instead would let anyone point their login at any tenant.
The response is UNIFORM whether or not the domain has SSO. Otherwise anyone could enumerate which companies are TRUSTIVAN customers, one address at a time.
POST
/
auth
/
sso
/
start
Begin an enterprise single sign-on login
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/sso/start \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"relay_state": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/sso/start"
payload = {
"email": "jsmith@example.com",
"relay_state": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', relay_state: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/sso/start', 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/auth/sso/start"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"relay_state\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}