C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.ClientGrants;
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.ClientGrants.Organizations.ListAsync(
id: "id",
request: new ListClientGrantOrganizationsRequestParameters {
From = "from",
Take = 1
}
);
}
}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.ListClientGrantOrganizationsRequestParameters{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
mgmt.ClientGrants.Organizations.List(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.clientgrants.types.ListClientGrantOrganizationsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.clientGrants().organizations().list(
"id",
ListClientGrantOrganizationsRequestParameters
.builder()
.from("from")
.take(1)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\ClientGrants\Organizations\Requests\ListClientGrantOrganizationsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->clientGrants->organizations->list(
'id',
new ListClientGrantOrganizationsRequestParameters([
'from' => 'from',
'take' => 1,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.client_grants.organizations.list(
id="id",
from="from",
take=1,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.client_grants.organizations.list(
id: "id",
from: "from",
take: 1
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.clientGrants.organizations.list("id", {
from: "from",
take: 1,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.clientGrants.organizations.list("id", {
from: "from",
take: 1,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/client-grants/{id}/organizations \
--header 'Authorization: Bearer <token>'[
{
"branding": {
"colors": {
"page_background": "<string>",
"primary": "<string>"
},
"logo_url": "<string>"
},
"client": {
"use_for_member_access": true
},
"display_name": "Acme Users",
"id": "<string>",
"is_app_entitlement_active": true,
"metadata": {},
"name": "organization-1",
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
}
}
]クライアントグラントのOrganizationsを取得
GET
https://{tenantDomain}/api/v2
/
client-grants
/
{id}
/
organizations
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.ClientGrants;
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.ClientGrants.Organizations.ListAsync(
id: "id",
request: new ListClientGrantOrganizationsRequestParameters {
From = "from",
Take = 1
}
);
}
}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.ListClientGrantOrganizationsRequestParameters{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
mgmt.ClientGrants.Organizations.List(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.clientgrants.types.ListClientGrantOrganizationsRequestParameters;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.clientGrants().organizations().list(
"id",
ListClientGrantOrganizationsRequestParameters
.builder()
.from("from")
.take(1)
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\ClientGrants\Organizations\Requests\ListClientGrantOrganizationsRequestParameters;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->clientGrants->organizations->list(
'id',
new ListClientGrantOrganizationsRequestParameters([
'from' => 'from',
'take' => 1,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.client_grants.organizations.list(
id="id",
from="from",
take=1,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.client_grants.organizations.list(
id: "id",
from: "from",
take: 1
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.clientGrants.organizations.list("id", {
from: "from",
take: 1,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.clientGrants.organizations.list("id", {
from: "from",
take: 1,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/client-grants/{id}/organizations \
--header 'Authorization: Bearer <token>'[
{
"branding": {
"colors": {
"page_background": "<string>",
"primary": "<string>"
},
"logo_url": "<string>"
},
"client": {
"use_for_member_access": true
},
"display_name": "Acme Users",
"id": "<string>",
"is_app_entitlement_active": true,
"metadata": {},
"name": "organization-1",
"token_quota": {
"client_credentials": {
"enforce": true,
"per_day": 1073741824,
"per_hour": 1073741824
}
}
}
]承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
パスパラメータ
クライアントグラントの ID
クエリパラメータ
返される結果のページ index。最初のページは 0 です。
必須範囲:
x >= 01 ページあたりの結果数。デフォルトは 50 です。
必須範囲:
1 <= x <= 100結果を、総件数を含むオブジェクトとして返すか(true)、結果の配列を直接返すか(false、デフォルト)を指定します。
選択を開始する起点となる省略可能な Id。
1 ページあたりの結果数。デフォルトは 50 です。
必須範囲:
1 <= x <= 100レスポンス
Organizations の取得に成功しました。
- Option 1 · object[]
- Option 2 · object
- Option 3 · object
Theme はログインページのスタイルを定義します。
Show child attributes
Show child attributes
include_client_association_for クエリパラメータで渡されたクライアントと organization の関連付け。
Show child attributes
Show child attributes
このorganizationのフレンドリー名。
Required string length:
1 - 255organizationの識別子。
Maximum string length:
50この organization でアプリケーションのエンタイトルメントが有効かどうか。
organization に関連付けられたメタデータです。文字列値を持つオブジェクト形式です(最大255文字)。メタデータのプロパティは最大25個まで設定できます。
Show child attributes
Show child attributes
このorganizationの名前。
Required string length:
1 - 50この organization をサードパーティ クライアントのユーザーフローで使用できるかどうかを制御します。デフォルトは block です。
利用可能なオプション:
block, allow Show child attributes
Show child attributes
⌘I