using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.SelfServiceProfiles;
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.SelfServiceProfiles.SsoTicket.CreateAsync(
id: "id",
request: new CreateSelfServiceProfileSsoTicketRequestContent()
);
}
}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.CreateSelfServiceProfileSsoTicketRequestContent{}
mgmt.SelfServiceProfiles.SsoTicket.Create(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.selfserviceprofiles.types.CreateSelfServiceProfileSsoTicketRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.selfServiceProfiles().ssoTicket().create(
"id",
CreateSelfServiceProfileSsoTicketRequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\SelfServiceProfiles\SsoTicket\Requests\CreateSelfServiceProfileSsoTicketRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->selfServiceProfiles->ssoTicket->create(
'id',
new CreateSelfServiceProfileSsoTicketRequestContent([]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.self_service_profiles.sso_ticket.create(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.self_service_profiles.sso_ticket.create(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.create("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.create("id", {});
}
main();
curl --request POST \
--url https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_id": "<string>",
"enabled_clients": [
"<string>"
],
"enabled_features": {
"domain_verification": true,
"provisioning": true,
"sso": true
},
"enabled_organizations": [
{
"organization_id": "<string>",
"assign_membership_on_login": true,
"show_as_button": true
}
],
"provisioning_config": {
"scopes": [],
"token_lifetime": 901
},
"ttl_sec": 216000,
"use_for_organization_discovery": true
}
'{
"ticket": "<string>"
}SSO チケットをPOST
セルフサービスプロファイルを使用して Self-Service Enterprise Configuration フローを開始するためのアクセスチケットを作成します。
using Auth0.ManagementApi;
using System.Threading.Tasks;
using Auth0.ManagementApi.SelfServiceProfiles;
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.SelfServiceProfiles.SsoTicket.CreateAsync(
id: "id",
request: new CreateSelfServiceProfileSsoTicketRequestContent()
);
}
}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.CreateSelfServiceProfileSsoTicketRequestContent{}
mgmt.SelfServiceProfiles.SsoTicket.Create(
context.TODO(),
"id",
request,
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
import com.auth0.client.mgmt.selfserviceprofiles.types.CreateSelfServiceProfileSsoTicketRequestContent;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.selfServiceProfiles().ssoTicket().create(
"id",
CreateSelfServiceProfileSsoTicketRequestContent
.builder()
.build()
);
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
use Auth0\SDK\API\Management\SelfServiceProfiles\SsoTicket\Requests\CreateSelfServiceProfileSsoTicketRequestContent;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->selfServiceProfiles->ssoTicket->create(
'id',
new CreateSelfServiceProfileSsoTicketRequestContent([]),
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.self_service_profiles.sso_ticket.create(
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.self_service_profiles.sso_ticket.create(id: "id")
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.create("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.create("id", {});
}
main();
curl --request POST \
--url https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"connection_id": "<string>",
"enabled_clients": [
"<string>"
],
"enabled_features": {
"domain_verification": true,
"provisioning": true,
"sso": true
},
"enabled_organizations": [
{
"organization_id": "<string>",
"assign_membership_on_login": true,
"show_as_button": true
}
],
"provisioning_config": {
"scopes": [],
"token_lifetime": 901
},
"ttl_sec": 216000,
"use_for_organization_discovery": true
}
'{
"ticket": "<string>"
}承認
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ヘッダー
このリクエストで使用するカスタムドメイン
3 - 255パスパラメータ
取得するセルフサービスプロファイルの ID
ボディ
指定した場合、指定された設定でSelf-Service Enterprise Configurationフロー用の新しい接続が作成されます
Show child attributes
Show child attributes
指定した場合、Self-Service Enterprise Configurationフロー中に指定された接続を編集できるようになります。
Self-Service Enterprise Configurationフローで接続のdomain_aliasesを設定するための構成。
Show child attributes
Show child attributes
この接続を有効にするclient_idsの一覧。
「接続を編集」チケットで有効にする機能を指定します。接続IDが指定されている場合にのみ適用されます。
Show child attributes
Show child attributes
この接続を有効にする組織の一覧。
Show child attributes
Show child attributes
セルフサービスフローでProvisioningを設定するための構成。
Show child attributes
Show child attributes
Self-Service Enterprise Configurationフロー中のThird Party Client Accessの設定。
Show child attributes
Show child attributes
チケットの有効期限が切れるまでの有効秒数。未指定または0に設定した場合、この値はデフォルトで432000秒(5日)になります。
0 <= x <= 432000認証時のorganization検出に検証済みドメインを使用するかどうかを示します。
レスポンス
Self-Service Enterprise Configuration Access Ticket が正常に作成されました。
作成されたチケットのURL。