Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
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.CustomDomains.SetDefaultAsync( new SetDefaultCustomDomainRequestContent { Domain = "domain" } ); } }
package com.example.usage; import com.auth0.client.mgmt.ManagementApi; import com.auth0.client.mgmt.types.SetDefaultCustomDomainRequestContent; public class Example { public static void main(String[] args) { ManagementApi client = ManagementApi .builder() .domain("{YOUR_DOMAIN}") .token("<token>") .build(); client.customDomains().setDefault( SetDefaultCustomDomainRequestContent .builder() .domain("domain") .build() ); } }
<?php namespace Example; use Auth0\SDK\API\Management\Wrapper\ManagementClient; use Auth0\SDK\API\Management\Wrapper\ManagementClientOptions; use Auth0\SDK\API\Management\CustomDomains\Requests\SetDefaultCustomDomainRequestContent; $client = new ManagementClient(new ManagementClientOptions( domain: '{YOUR_DOMAIN}', token: '<token>', )); $client->customDomains->setDefault( new SetDefaultCustomDomainRequestContent([ 'domain' => 'domain', ]), );
from auth0.management import ManagementClient client = ManagementClient( domain="{YOUR_DOMAIN}", token="<token>", ) client.custom_domains.set_default( domain="domain", )
require "auth0" client = Auth0::Management.new(token: "<token>", base_url: "https://{YOUR_DOMAIN}/api/v2") client.custom_domains.set_default(domain: "domain")
curl --request PATCH \ --url https://{tenantDomain}/api/v2/custom-domains/default \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "domain": "<string>" } '
const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({domain: '<string>'}) }; fetch('https://{tenantDomain}/api/v2/custom-domains/default', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
package main import ( "fmt" "strings" "net/http" "io" ) func main() { url := "https://{tenantDomain}/api/v2/custom-domains/default" payload := strings.NewReader("{\n \"domain\": \"<string>\"\n}") req, _ := http.NewRequest("PATCH", url, payload) req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json") res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
{ "custom_domain_id": "cd_0000000000000001", "domain": "login.mycompany.com", "primary": false, "status": "ready", "type": "self_managed_certs", "certificate": { "certificate_authority": "letsencrypt", "error_msg": "<string>", "renews_before": "<string>", "status": "provisioning" }, "custom_client_ip_header": "<string>", "domain_metadata": {}, "is_default": false, "origin_domain_name": "mycompany_cd_0000000000000001.edge.tenants.auth0.com", "relying_party_identifier": "<string>", "tls_policy": "recommended", "verification": { "error_msg": "<string>", "last_verified_at": "<string>", "methods": [ { "name": "txt", "record": "auth0-domain-verification=...", "domain": "_cf-custom-hostname.login.mycompany.com" } ], "status": "verified" } }
テナントのデフォルトのカスタムドメインを設定します。
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Update Custom Domains
デフォルトのカスタムドメインとして設定するドメイン。検証済みのカスタムドメインまたは正規ドメインである必要があります。
3 - 255
デフォルトのカスタムドメインを正常に設定しました。
カスタムドメインのID。
ドメイン名。
これがプライマリドメインかどうか(true または false)。
カスタムドメインの設定ステータス。failed、pending_verification、または ready のいずれかになります。
failed
pending_verification
ready
カスタムドメインのプロビジョニングタイプ。auth0_managed_certs または self_managed_certs のいずれかになります。
auth0_managed_certs
self_managed_certs
証明書情報。このオブジェクトは、Auth0 管理の証明書を使用するカスタムドメインにのみ関連します。
Show child attributes
クライアントのIPアドレスを取得するためのHTTPヘッダー
カスタムドメインに関連付けられたドメインのメタデータ。文字列値(最大 255 文字)を持つオブジェクト形式です。ドメインのメタデータプロパティは最大 10 個まで指定できます。
これがデフォルトのカスタムドメインかどうか(true または false)。
中継アドレス。
このカスタムドメインでパスキーに使用する Relying Party ID(rpId)。指定されていない場合は、完全なドメイン名が使用されます。
TLSバージョンのポリシー
ドメイン検証の設定。