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));{
"authorization_url": "<string>"
}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));{
"authorization_url": "<string>"
}
