Consume the SAML assertion (ACS)
curl --request POST \
--url https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg== \
--data RelayState=/dashboardimport requests
url = "https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback"
payload = {
"SAMLResponse": "PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg==",
"RelayState": "/dashboard"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
SAMLResponse: 'PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg==',
RelayState: '/dashboard'
})
};
fetch('https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback"
payload := strings.NewReader("SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
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.orbit.devotel.io/auth/saml/{orgSlug}/callback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard"
response = http.request(request)
puts response.read_body{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Auth
Consume the SAML assertion (ACS)
SAML 2.0 Assertion Consumer Service. The identity provider POSTs a signed SAMLResponse here after the user authenticates; Orbit verifies the signature, audience and replay window, provisions a user on first login, then 302-redirects the browser to the dashboard sign-in ticket so the session cookie can be minted. This endpoint is called by the IdP, not directly by your application.
POST
/
auth
/
saml
/
{orgSlug}
/
callback
Consume the SAML assertion (ACS)
curl --request POST \
--url https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg== \
--data RelayState=/dashboardimport requests
url = "https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback"
payload = {
"SAMLResponse": "PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg==",
"RelayState": "/dashboard"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({
SAMLResponse: 'PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg==',
RelayState: '/dashboard'
})
};
fetch('https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback"
payload := strings.NewReader("SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
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.orbit.devotel.io/auth/saml/{orgSlug}/callback")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/auth/saml/{orgSlug}/callback")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "SAMLResponse=PHNhbWxwOlJlc3BvbnNlIC4uLj48L3NhbWxwOlJlc3BvbnNlPg%3D%3D&RelayState=%2Fdashboard"
response = http.request(request)
puts response.read_body{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"status": 123,
"details": {}
},
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"docs_url": "<string>"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Path Parameters
URL-safe organization slug that selects the SAML configuration.
Body
application/x-www-form-urlencoded
Response
Assertion accepted; redirect (via the Location header) to the dashboard sign-in endpoint with a one-time Clerk ticket that is swapped for a session cookie.
⌘I