Go
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.SelfServiceProfiles.SsoTicket.Revoke(
context.TODO(),
"profileId",
"id",
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.revoke("profileId", "id");
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
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>'import requests
url = "https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/{profileId}/sso-ticket/{id}/revoke")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body失効(POST)
Self-Service Enterprise Configuration のアクセストicketを失効し、関連するセッションを無効化します。このticketは以後、Self-Service Enterprise Configuration セッションの開始には使用できなくなります。いずれかのユーザーがこのticketを通じてすでにセッションを開始している場合、そのセッションは終了されます。正常に処理されると、クライアントには 202 Accepted レスポンスが返されます。これは、リクエストが受理され、失効処理が進行中であるものの、レスポンス時点ではまだ完全に完了していない可能性があることを示します。指定したticketが存在しない場合も、202 Accepted レスポンスが返され、それ以上の対応が不要であることを示します。
クライアントは、ticketが見つからなかった場合でも、これらの 202 レスポンスを、リクエストが受理されて処理中であることの確認として扱う必要があります。
POST
https://{tenantDomain}/api/v2
/
self-service-profiles
/
{profileId}
/
sso-ticket
/
{id}
/
revoke
Go
package example
import (
context "context"
client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)
func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.SelfServiceProfiles.SsoTicket.Revoke(
context.TODO(),
"profileId",
"id",
)
}import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.selfServiceProfiles.ssoTicket.revoke("profileId", "id");
}
main();import { ManagementClient } from "auth0";
async function main() {
const client = new ManagementClient({
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>'import requests
url = "https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/{profileId}/sso-ticket/{id}/revoke")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{tenantDomain}/api/v2/self-service-profiles/{profileId}/sso-ticket/{id}/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body⌘I