List an organization's SSO sign-in options
curl --request GET \
--url https://api.openworklabs.com/v1/auth/sso-optionsimport requests
url = "https://api.openworklabs.com/v1/auth/sso-options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.openworklabs.com/v1/auth/sso-options', 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.openworklabs.com/v1/auth/sso-options",
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://api.openworklabs.com/v1/auth/sso-options"
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://api.openworklabs.com/v1/auth/sso-options")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/auth/sso-options")
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{
"organizationName": "<string>",
"providers": [
{
"providerId": "<string>",
"name": "<string>",
"kind": "oidc"
}
]
}{
"error": "invalid_request"
}{
"error": "organization_not_found"
}{
"error": "rate_limited",
"message": "<string>"
}Authentication
List an organization's SSO sign-in options
Returns the identity providers people can sign in with on the organization's SSO page (/sso/<slug>): its enabled SSO connections on a verified domain, oldest first. Start sign-in with one by passing its providerId to Better Auth's /sign-in/sso.
GET
/
v1
/
auth
/
sso-options
List an organization's SSO sign-in options
curl --request GET \
--url https://api.openworklabs.com/v1/auth/sso-optionsimport requests
url = "https://api.openworklabs.com/v1/auth/sso-options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.openworklabs.com/v1/auth/sso-options', 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.openworklabs.com/v1/auth/sso-options",
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://api.openworklabs.com/v1/auth/sso-options"
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://api.openworklabs.com/v1/auth/sso-options")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.openworklabs.com/v1/auth/sso-options")
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{
"organizationName": "<string>",
"providers": [
{
"providerId": "<string>",
"name": "<string>",
"kind": "oidc"
}
]
}{
"error": "invalid_request"
}{
"error": "organization_not_found"
}{
"error": "rate_limited",
"message": "<string>"
}Was this page helpful?