List client IdPs.
curl --request GET \
--url https://{tenant}/api/clientidps \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}/api/clientidps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenant}/api/clientidps', 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://{tenant}/api/clientidps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <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://{tenant}/api/clientidps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <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://{tenant}/api/clientidps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}/api/clientidps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"client_idps": [
{
"_id": "<string>",
"client_idp_id": "<string>",
"org_id": "<string>",
"name": "<string>",
"issuer": "<string>",
"jwks_uri": "<string>",
"scope_claim_name": "<string>",
"api_mappings": {
"b84fe1a04e5648927971c0557971565c": {
"scope_to_policy": {
"read": "665d51505715ec2d76022c87"
}
}
},
"date_created": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z"
}
],
"pages": 123
}Client IdPs
List client IdPs.
Return a paginated list of client IdPs within the caller’s org. Use ?p=<page> to paginate; send -1 to return all results.
GET
/
api
/
clientidps
List client IdPs.
curl --request GET \
--url https://{tenant}/api/clientidps \
--header 'Authorization: Bearer <token>'import requests
url = "https://{tenant}/api/clientidps"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{tenant}/api/clientidps', 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://{tenant}/api/clientidps",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <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://{tenant}/api/clientidps"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <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://{tenant}/api/clientidps")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenant}/api/clientidps")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"client_idps": [
{
"_id": "<string>",
"client_idp_id": "<string>",
"org_id": "<string>",
"name": "<string>",
"issuer": "<string>",
"jwks_uri": "<string>",
"scope_claim_name": "<string>",
"api_mappings": {
"b84fe1a04e5648927971c0557971565c": {
"scope_to_policy": {
"read": "665d51505715ec2d76022c87"
}
}
},
"date_created": "2023-11-07T05:31:56Z",
"last_updated": "2023-11-07T05:31:56Z"
}
],
"pages": 123
}Was this page helpful?
⌘I