Python (SDK)
from meetkai_mka1 import SDK, models
with SDK() as sdk:
res = sdk.auth.orgs.get_sso_policy(security=models.GetSsoPolicySecurity(
session_cookie="<YOUR_API_KEY_HERE>",
), provider_id="<id>")
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.auth.orgs.getSsoPolicy({
sessionCookie: "<YOUR_API_KEY_HERE>",
}, {
providerId: "<id>",
});
console.log(result);
}
run();using MeetKai.MKA1;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK();
var res = await sdk.Auth.Orgs.GetSsoPolicyAsync(
security: new GetSsoPolicySecurity() {
SessionCookie = "<YOUR_API_KEY_HERE>",
},
providerId: "<id>"
);
// handle responsecurl --request GET \
--url https://apigw.mka1.com/api/v1/authentication/sso/policy \
--cookie __Secure-mka1-auth-v2.session_token=const options = {method: 'GET', headers: {cookie: '__Secure-mka1-auth-v2.session_token='}};
fetch('https://apigw.mka1.com/api/v1/authentication/sso/policy', 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://apigw.mka1.com/api/v1/authentication/sso/policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-mka1-auth-v2.session_token=",
]);
$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://apigw.mka1.com/api/v1/authentication/sso/policy"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Secure-mka1-auth-v2.session_token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/authentication/sso/policy")
.header("cookie", "__Secure-mka1-auth-v2.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/authentication/sso/policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-mka1-auth-v2.session_token='
response = http.request(request)
puts response.read_body{
"providerId": "<string>",
"enabled": true,
"groupsClaim": "<string>",
"mappings": [
{
"groupValue": "<string>",
"role": "member"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Organization
Leer la política de asignación de roles de SSO empresarial
Requiere una sesión de navegador humana en vivo y la membresía actual de propietario/administrador en la organización de clientes activa de la conexión. No se aceptan claves de API.
GET
/
api
/
v1
/
authentication
/
sso
/
policy
Python (SDK)
from meetkai_mka1 import SDK, models
with SDK() as sdk:
res = sdk.auth.orgs.get_sso_policy(security=models.GetSsoPolicySecurity(
session_cookie="<YOUR_API_KEY_HERE>",
), provider_id="<id>")
# Handle response
print(res)import { SDK } from "@meetkai/mka1";
const sdk = new SDK();
async function run() {
const result = await sdk.auth.orgs.getSsoPolicy({
sessionCookie: "<YOUR_API_KEY_HERE>",
}, {
providerId: "<id>",
});
console.log(result);
}
run();using MeetKai.MKA1;
using MeetKai.MKA1.Types.Requests;
var sdk = new SDK();
var res = await sdk.Auth.Orgs.GetSsoPolicyAsync(
security: new GetSsoPolicySecurity() {
SessionCookie = "<YOUR_API_KEY_HERE>",
},
providerId: "<id>"
);
// handle responsecurl --request GET \
--url https://apigw.mka1.com/api/v1/authentication/sso/policy \
--cookie __Secure-mka1-auth-v2.session_token=const options = {method: 'GET', headers: {cookie: '__Secure-mka1-auth-v2.session_token='}};
fetch('https://apigw.mka1.com/api/v1/authentication/sso/policy', 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://apigw.mka1.com/api/v1/authentication/sso/policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "__Secure-mka1-auth-v2.session_token=",
]);
$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://apigw.mka1.com/api/v1/authentication/sso/policy"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "__Secure-mka1-auth-v2.session_token=")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://apigw.mka1.com/api/v1/authentication/sso/policy")
.header("cookie", "__Secure-mka1-auth-v2.session_token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://apigw.mka1.com/api/v1/authentication/sso/policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = '__Secure-mka1-auth-v2.session_token='
response = http.request(request)
puts response.read_body{
"providerId": "<string>",
"enabled": true,
"groupsClaim": "<string>",
"mappings": [
{
"groupValue": "<string>",
"role": "member"
}
]
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorizaciones
Current Better Auth browser or device-login session
Encabezados
Optional external end-user identifier forwarded by the API gateway.
Parámetros de consulta
¿Esta página le ayudó?
⌘I