C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Organizations;
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.Organizations.EnabledConnections.ListAsync(
id: "id",
request: new ListOrganizationConnectionsRequestParameters {
Page = 1,
PerPage = 1,
IncludeTotals = true
}
);
}
}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.ListOrganizationConnectionsRequestParameters{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
mgmt.Organizations.EnabledConnections.List(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.organizations.types.ListOrganizationConnectionsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.organizations().enabledConnections().list(
"id",
ListOrganizationConnectionsRequestParameters
.builder()
.page(1)
.perPage(1)
.includeTotals(true)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Organizations\EnabledConnections\Requests\ListOrganizationConnectionsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->organizations->enabledConnections->list(
'id',
new ListOrganizationConnectionsRequestParameters([
'page' => 1,
'perPage' => 1,
'includeTotals' => true,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.organizations.enabled_connections.list(
id="id",
page=1,
per_page=1,
include_totals=True,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.organizations.enabled_connections.list(
id: "id",
page: 1,
per_page: 1,
include_totals: true
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.enabledConnections.list("id", {
page: 1,
perPage: 1,
includeTotals: true,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.enabledConnections.list("id", {
page: 1,
perPage: 1,
includeTotals: true,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/organizations/{id}/enabled_connections \
--header 'Authorization: Bearer <token>'[
{
"assign_membership_on_login": true,
"connection": {
"name": "<string>",
"strategy": "<string>"
},
"connection_id": "<string>",
"is_signup_enabled": true,
"show_as_button": true
}
]有効な接続を取得
現在 Organization で有効になっている特定の接続の詳細を取得します。返される情報には、接続 ID、名前、strategy、ログイン時にその接続が自動的にメンバーシップを付与するかどうかなどが含まれます。
GET
https://{tenantDomain}/api/v2
/
organizations
/
{id}
/
enabled_connections
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.Organizations;
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.Organizations.EnabledConnections.ListAsync(
id: "id",
request: new ListOrganizationConnectionsRequestParameters {
Page = 1,
PerPage = 1,
IncludeTotals = true
}
);
}
}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.ListOrganizationConnectionsRequestParameters{
Page: management.Int(
1,
),
PerPage: management.Int(
1,
),
IncludeTotals: management.Bool(
true,
),
}
mgmt.Organizations.EnabledConnections.List(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.organizations.types.ListOrganizationConnectionsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.organizations().enabledConnections().list(
"id",
ListOrganizationConnectionsRequestParameters
.builder()
.page(1)
.perPage(1)
.includeTotals(true)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\Organizations\EnabledConnections\Requests\ListOrganizationConnectionsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->organizations->enabledConnections->list(
'id',
new ListOrganizationConnectionsRequestParameters([
'page' => 1,
'perPage' => 1,
'includeTotals' => true,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.organizations.enabled_connections.list(
id="id",
page=1,
per_page=1,
include_totals=True,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.organizations.enabled_connections.list(
id: "id",
page: 1,
per_page: 1,
include_totals: true
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.enabledConnections.list("id", {
page: 1,
perPage: 1,
includeTotals: true,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.organizations.enabledConnections.list("id", {
page: 1,
perPage: 1,
includeTotals: true,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/organizations/{id}/enabled_connections \
--header 'Authorization: Bearer <token>'[
{
"assign_membership_on_login": true,
"connection": {
"name": "<string>",
"strategy": "<string>"
},
"connection_id": "<string>",
"is_signup_enabled": true,
"show_as_button": true
}
]承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
organization識別子。
Maximum string length:
50クエリパラメータ
返される結果のページ index。最初のページは 0 です。
必須範囲:
x >= 01 ページあたりの結果数。デフォルトは 50 です。
必須範囲:
1 <= x <= 100結果を、総件数を含むオブジェクト内に返すか(true)、結果の配列を直接返すか(false、デフォルト)を指定します。
レスポンス
接続を正常に取得しました。
- object[]
- object
true の場合、この接続でログインするすべてのユーザーに、そのorganizationのメンバーシップが自動的に付与されます。false の場合、ユーザーはこの接続でログインする前に、そのorganizationのメンバーシップを付与されている必要があります。
Show child attributes
Show child attributes
接続のID。
このorganization接続でorganizationのサインアップを有効にするかどうかを指定します。データベース接続にのみ適用されます。デフォルト: false。
このorganizationのログインプロンプトに接続を表示するかどうかを指定します。エンタープライズ接続にのみ適用されます。デフォルト: true。
⌘I