package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
selfserviceprofiles "github.com/auth0/go-auth0/management/management/selfserviceprofiles"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &selfserviceprofiles.CreateSelfServiceProfileSsoTicketRequestContent{}
client.SelfServiceProfiles.SsoTicket.Create(
context.TODO(),
"id",
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.create("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
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
}
'import requests
url = "https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket"
payload = {
"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
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_id\": \"<string>\",\n \"enabled_clients\": [\n \"<string>\"\n ],\n \"enabled_features\": {\n \"domain_verification\": true,\n \"provisioning\": true,\n \"sso\": true\n },\n \"enabled_organizations\": [\n {\n \"organization_id\": \"<string>\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true\n }\n ],\n \"provisioning_config\": {\n \"scopes\": [],\n \"token_lifetime\": 901\n },\n \"ttl_sec\": 216000,\n \"use_for_organization_discovery\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connection_id\": \"<string>\",\n \"enabled_clients\": [\n \"<string>\"\n ],\n \"enabled_features\": {\n \"domain_verification\": true,\n \"provisioning\": true,\n \"sso\": true\n },\n \"enabled_organizations\": [\n {\n \"organization_id\": \"<string>\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true\n }\n ],\n \"provisioning_config\": {\n \"scopes\": [],\n \"token_lifetime\": 901\n },\n \"ttl_sec\": 216000,\n \"use_for_organization_discovery\": true\n}"
response = http.request(request)
puts response.read_body{
"ticket": "<string>"
}SSOチケットを作成
セルフサービスプロファイルを使用して Self-Service Enterprise Configuration フローを開始するためのアクセストークンを作成します。
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
selfserviceprofiles "github.com/auth0/go-auth0/management/management/selfserviceprofiles"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
request := &selfserviceprofiles.CreateSelfServiceProfileSsoTicketRequestContent{}
client.SelfServiceProfiles.SsoTicket.Create(
context.TODO(),
"id",
request,
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.create("id", {});
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
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
}
'import requests
url = "https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket"
payload = {
"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
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.post("https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"connection_id\": \"<string>\",\n \"enabled_clients\": [\n \"<string>\"\n ],\n \"enabled_features\": {\n \"domain_verification\": true,\n \"provisioning\": true,\n \"sso\": true\n },\n \"enabled_organizations\": [\n {\n \"organization_id\": \"<string>\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true\n }\n ],\n \"provisioning_config\": {\n \"scopes\": [],\n \"token_lifetime\": 901\n },\n \"ttl_sec\": 216000,\n \"use_for_organization_discovery\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/self-service-profiles/{id}/sso-ticket")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"connection_id\": \"<string>\",\n \"enabled_clients\": [\n \"<string>\"\n ],\n \"enabled_features\": {\n \"domain_verification\": true,\n \"provisioning\": true,\n \"sso\": true\n },\n \"enabled_organizations\": [\n {\n \"organization_id\": \"<string>\",\n \"assign_membership_on_login\": true,\n \"show_as_button\": true\n }\n ],\n \"provisioning_config\": {\n \"scopes\": [],\n \"token_lifetime\": 901\n },\n \"ttl_sec\": 216000,\n \"use_for_organization_discovery\": true\n}"
response = http.request(request)
puts response.read_body{
"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
チケットの有効期限が切れるまでの秒数。未指定または 0 に設定した場合、この値のデフォルトは 432000 秒(5 日)です。
0 <= x <= 432000認証時の組織ディスカバリーに検証済みドメインを使用するかどうかを示します。
レスポンス
Self-Service Enterprise Configuration のアクセストークンが正常に作成されました。
作成されたチケットの URL。