curl --request GET \
--url https://sandbox.circularo.com/api/v1/samlimport requests
url = "https://sandbox.circularo.com/api/v1/saml"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/saml', 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://sandbox.circularo.com/api/v1/saml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/saml"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/saml")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/saml")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Start a SAML sign-in
GET /saml
Hands the person over to the identity provider the platform is paired with and starts a SAML sign-in that comes back to POST /saml/callback. It answers with a redirect to that provider, so it is opened in a browser and never called for its data.
The provider the person is sent to is the one configured for the address the request arrives at, which may belong to a tenant, an organization or a group, each of which can be paired with a provider of its own - so the sign-in is started through the same address it is to run on. Everything the return leg needs, the tenant, the address the person came from and the client’s own callback address if one was named, travels to the provider and back as a single opaque relay state rather than being kept on the server.
Signing in through a client of your own instead of the browser session is what callback is for; the sign-in then ends at that address with a one-time code rather than setting a session cookie.
No authorization: No authorization is required to call this endpoint.
curl --request GET \
--url https://sandbox.circularo.com/api/v1/samlimport requests
url = "https://sandbox.circularo.com/api/v1/saml"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/saml', 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://sandbox.circularo.com/api/v1/saml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/saml"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/saml")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/saml")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"status": 400,
"type": "VALIDATION:INPUT_INVALID",
"message": "Invalid input",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Headers
Query Parameters
Address of your own to finish at, rather than in the browser session - what a mobile or desktop client uses. The sign-in then ends there with a one-time code to exchange through GET /saml/code, and no session cookie is set. Anything other than the default address for native applications has to be listed in the tenant's samlCallbackWhitelist setting.
"circularo://app/saml"
Address of the web application the sign-in started from, kept for the return leg so that the person ends up back where they came from. It takes the place of the Referer header where that cannot be relied on, and the sign-in is refused when neither is given.
"https://app.circularo.com"
Tenant the sign-in belongs to. It is checked against that tenant's own SAML configuration and travels on in the relay state, which is what the return leg reads the sign-in back out of. Left out, the tenant is worked out from the address the request arrived at, which may just as well belong to an organization or a group and then stands for that level instead.
"democompany"
Response
The browser is redirected to the identity provider to authenticate the person.