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.SelfServiceProfiles.SsoTicket.RevokeAsync(
"profileId",
"id"
);
}
}package example
import (
context "context"
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
}
mgmt.SelfServiceProfiles.SsoTicket.Revoke(
context.TODO(),
"profileId",
"id",
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.selfServiceProfiles().ssoTicket().revoke("profileId", "id");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->selfServiceProfiles->ssoTicket->revoke(
'profileId',
'id',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.self_service_profiles.sso_ticket.revoke(
profile_id="profileId",
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.self_service_profiles.sso_ticket.revoke(
profile_id: "profileId",
id: "id"
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.revoke("profileId", "id");
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.revoke("profileId", "id");
}
main();
curl --request POST \
--url https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke \
--header 'Authorization: Bearer <token>'SSO チケットの取り消し
Self-Service Enterprise Configuration のアクセスチケットを取り消し、関連するセッションを無効化します。このチケットは、Self-Service Enterprise Configuration セッションの開始には今後使用できなくなります。すでにこのチケットを使ってセッションを開始したユーザーがいる場合、そのセッションは終了されます。正常に処理された場合、クライアントは 202 Accepted レスポンスが返されることを想定する必要があります。これは、リクエストが受理され、取り消し処理が進行中であるものの、レスポンス時点ではまだ完了していない可能性があることを示します。指定されたチケットが存在しない場合でも 202 Accepted レスポンスが返され、追加の対応が不要であることを示します。
クライアントは、チケットが見つからなかった場合であっても、これらの 202 レスポンスを、リクエストが受理されて処理中であることを示すものとして扱う必要があります。
POST
https://{tenantDomain}/api/v2
/
self-service-profiles
/
{profileId}
/
sso-ticket
/
{id}
/
revoke
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.SelfServiceProfiles.SsoTicket.RevokeAsync(
"profileId",
"id"
);
}
}package example
import (
context "context"
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
}
mgmt.SelfServiceProfiles.SsoTicket.Revoke(
context.TODO(),
"profileId",
"id",
)
}
package com.example.usage;
import com.auth0.client.mgmt.ManagementApi;
public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.domain("{YOUR_DOMAIN}")
.token("<token>")
.build();
client.selfServiceProfiles().ssoTicket().revoke("profileId", "id");
}
}<?php
namespace Example;
use Auth0\SDK\API\Management\Wrapper\ManagementClient;
use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions;
$client = new ManagementClient(new ManagementClientOptions(
domain: '{YOUR_DOMAIN}',
token: '<token>',
));
$client->selfServiceProfiles->ssoTicket->revoke(
'profileId',
'id',
);
from auth0.management import ManagementClient
client = ManagementClient(
domain="{YOUR_DOMAIN}",
token="<token>",
)
client.self_service_profiles.sso_ticket.revoke(
profile_id="profileId",
id="id",
)
require "auth0"
client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2")
client.self_service_profiles.sso_ticket.revoke(
profile_id: "profileId",
id: "id"
)
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.revoke("profileId", "id");
}
main();
import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
domain: "{YOUR_DOMAIN}",
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.revoke("profileId", "id");
}
main();
curl --request POST \
--url https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke \
--header 'Authorization: Bearer <token>'⌘I