C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Connections;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Connections.Clients.GetAsync(
id: "id",
request: new GetConnectionEnabledClientsRequestParameters {
Take = 1,
From = "from"
}
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.GetConnectionEnabledClientsRequestParameters{
Take: management.Int(
1,
),
From: management.String(
"from",
),
}
mgmt.Connections.Clients.Get(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.connections.types.GetConnectionEnabledClientsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.connections().clients().get(
"id",
GetConnectionEnabledClientsRequestParameters
.builder()
.take(1)
.from("from")
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Connections\Clients\Requests\GetConnectionEnabledClientsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->connections->clients->get(
'id',
new GetConnectionEnabledClientsRequestParameters([
'take' => 1,
'from' => 'from',
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.connections.clients.get(
id="id",
take=1,
from="from",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.connections.clients.get(
id: "id",
take: 1,
from: "from"
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/connections/{id}/clients \
--header 'Authorization: Bearer <token>'{
"clients": [
{
"client_id": "<string>"
}
],
"next": "<string>"
}Obtenir les clients de la connexion
deprecated
Récupérez tous les clients pour lesquels la connexion spécifiée est activée.
Remarque : la première fois que vous appelez ce point de terminaison, omettez le paramètre from. S’il y a d’autres résultats, une valeur next est incluse dans la réponse. Vous pouvez l’utiliser pour les appels d’API suivants. Lorsque next n’est plus inclus dans la réponse, il ne reste plus de résultats.
GET
https://{tenantDomain}/api/v2
/
connections
/
{id}
/
clients
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Connections;
public partial class Examples
{
public async Task Example() {
var client = new ManagementApiClient(
token: "<token>",
clientOptions: new ClientOptions { BaseUrl = "https://{YOUR_DOMAIN}/api/v2" }
);
await client.Connections.Clients.GetAsync(
id: "id",
request: new GetConnectionEnabledClientsRequestParameters {
Take = 1,
From = "from"
}
);
}
}package example
import (
context "context"
management "github.com/auth0/go-auth0/v3/management"
client "github.com/auth0/go-auth0/v3/management/client"
option "github.com/auth0/go-auth0/v3/management/option"
)
func do() {
mgmt, err := client.New(
"{YOUR_DOMAIN}",
option.WithToken(
"<token>",
),
)
if err != nil {
return
}
request := &management.GetConnectionEnabledClientsRequestParameters{
Take: management.Int(
1,
),
From: management.String(
"from",
),
}
mgmt.Connections.Clients.Get(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.connections.types.GetConnectionEnabledClientsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.connections().clients().get(
"id",
GetConnectionEnabledClientsRequestParameters
.builder()
.take(1)
.from("from")
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Connections\Clients\Requests\GetConnectionEnabledClientsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->connections->clients->get(
'id',
new GetConnectionEnabledClientsRequestParameters([
'take' => 1,
'from' => 'from',
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.connections.clients.get(
id="id",
take=1,
from="from",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.connections.clients.get(
id: "id",
take: 1,
from: "from"
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.connections.clients.get("id", {
take: 1,
from: "from",
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/connections/{id}/clients \
--header 'Authorization: Bearer <token>'{
"clients": [
{
"client_id": "<string>"
}
],
"next": "<string>"
}Autorisations
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Paramètres de chemin
L’ID de la connexion pour laquelle les clients activés doivent être récupérés
Paramètres de requête
Nombre de résultats par page. La valeur par défaut est 50.
Plage requise:
1 <= x <= 1000ID facultatif à partir duquel commencer la sélection.
Maximum string length:
1000⌘I