Start organization SSO
curl --request POST \
--url https://api.glassmarkets.io/v1/sso/start/ \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"exchange_verifier": "<string>",
"next": "/summary/stats"
}
'import requests
url = "https://api.glassmarkets.io/v1/sso/start/"
payload = {
"email": "jsmith@example.com",
"exchange_verifier": "<string>",
"next": "/summary/stats"
}
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',
exchange_verifier: '<string>',
next: '/summary/stats'
})
};
fetch('https://api.glassmarkets.io/v1/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://api.glassmarkets.io/v1/sso/start/"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"exchange_verifier\": \"<string>\",\n \"next\": \"/summary/stats\"\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))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v1/sso/start/")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"exchange_verifier\": \"<string>\",\n \"next\": \"/summary/stats\"\n}")
.asString();{
"authorization_url": "<string>"
}{
"email": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}Authentication
Start organization SSO
Starts single sign-on for an email address whose organization has an identity provider set up. Returns the provider URL to redirect the browser to. Returns 400 when SSO is not available for the email.
Start organization SSO
curl --request POST \
--url https://api.glassmarkets.io/v1/sso/start/ \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"exchange_verifier": "<string>",
"next": "/summary/stats"
}
'import requests
url = "https://api.glassmarkets.io/v1/sso/start/"
payload = {
"email": "jsmith@example.com",
"exchange_verifier": "<string>",
"next": "/summary/stats"
}
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',
exchange_verifier: '<string>',
next: '/summary/stats'
})
};
fetch('https://api.glassmarkets.io/v1/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://api.glassmarkets.io/v1/sso/start/"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"exchange_verifier\": \"<string>\",\n \"next\": \"/summary/stats\"\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))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v1/sso/start/")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"exchange_verifier\": \"<string>\",\n \"next\": \"/summary/stats\"\n}")
.asString();{
"authorization_url": "<string>"
}{
"email": [
"This field is required."
]
}{
"detail": "Request was throttled. Expected available in 42 seconds."
}
