C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
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.TokenExchangeProfiles.ListAsync(
new TokenExchangeProfilesListRequest {
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.TokenExchangeProfilesListRequest{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
mgmt.TokenExchangeProfiles.List(
context.TODO(),
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.TokenExchangeProfilesListRequest;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.tokenExchangeProfiles().list(
TokenExchangeProfilesListRequest
.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\TokenExchangeProfiles\Requests\TokenExchangeProfilesListRequest;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->tokenExchangeProfiles->list(
new TokenExchangeProfilesListRequest([
'from' => 'from',
'take' => 1,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.token_exchange_profiles.list(
from="from",
take=1,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.token_exchange_profiles.list(
from: "from",
take: 1
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.tokenExchangeProfiles.list({
from: "from",
take: 1,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.tokenExchangeProfiles.list({
from: "from",
take: 1,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/token-exchange-profiles \
--header 'Authorization: Bearer <token>'{
"next": "<string>",
"token_exchange_profiles": [
{
"action_id": "<string>",
"created_at": "2024-01-01T00:00:00.000Z",
"id": "<string>",
"name": "Token Exchange Profile 1",
"subject_token_type": "<string>",
"type": "custom_authentication",
"updated_at": "2024-01-01T00:00:00.000Z"
}
]
}Token Exchangeプロファイルを取得
テナントで利用可能なすべてのトークン交換プロファイルの一覧を取得します。
この機能を使用することにより、Okta’s Master Subscription Agreement に記載されている該当する無料トライアル条項に同意したものとみなされます。ユーザーの subject_token を安全に検証する責任はお客様にあります。詳細については、User Guide を参照してください。
このエンドポイントは Checkpoint ページネーションをサポートしています。checkpoint を使用してページングするには、次のパラメーターを使用します。
from: 取得を開始する位置を示す省略可能な ID。take:fromパラメーターを使用する場合に取得するエントリー数。既定値は 50 です。
注: Checkpoint ページネーションを使用してこのエンドポイントを初めて呼び出すときは、from パラメーターを省略してください。さらに結果がある場合は、レスポンスに next 値が含まれます。これは後続の API 呼び出しで使用できます。レスポンスに next が含まれなくなった場合、残りのページはありません。
GET
https://{tenantDomain}/api/v2
/
token-exchange-profiles
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;
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.TokenExchangeProfiles.ListAsync(
new TokenExchangeProfilesListRequest {
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.TokenExchangeProfilesListRequest{
From: management.String(
"from",
),
Take: management.Int(
1,
),
}
mgmt.TokenExchangeProfiles.List(
context.TODO(),
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.types.TokenExchangeProfilesListRequest;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.tokenExchangeProfiles().list(
TokenExchangeProfilesListRequest
.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\TokenExchangeProfiles\Requests\TokenExchangeProfilesListRequest;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->tokenExchangeProfiles->list(
new TokenExchangeProfilesListRequest([
'from' => 'from',
'take' => 1,
]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.token_exchange_profiles.list(
from="from",
take=1,
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.token_exchange_profiles.list(
from: "from",
take: 1
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.tokenExchangeProfiles.list({
from: "from",
take: 1,
});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.tokenExchangeProfiles.list({
from: "from",
take: 1,
});
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/token-exchange-profiles \
--header 'Authorization: Bearer <token>'{
"next": "<string>",
"token_exchange_profiles": [
{
"action_id": "<string>",
"created_at": "2024-01-01T00:00:00.000Z",
"id": "<string>",
"name": "Token Exchange Profile 1",
"subject_token_type": "<string>",
"type": "custom_authentication",
"updated_at": "2024-01-01T00:00:00.000Z"
}
]
}承認
bearerAuthoAuth2ClientCredentials
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
⌘I