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.CustomDomains.Get(
context.TODO(),
"id",
)
}{
"custom_domain_id": "cd_0000000000000001",
"domain": "login.mycompany.com",
"primary": false,
"status": "ready",
"type": "self_managed_certs",
"is_default": false,
"origin_domain_name": "mycompany_cd_0000000000000001.edge.tenants.auth0.com",
"verification": {
"methods": [
{
"name": "txt",
"record": "auth0-domain-verification=...",
"domain": "_cf-custom-hostname.login.mycompany.com"
}
],
"status": "verified",
"error_msg": "<string>",
"last_verified_at": "<string>"
},
"custom_client_ip_header": "<string>",
"tls_policy": "recommended",
"domain_metadata": {},
"certificate": {
"status": "provisioning",
"error_msg": "<string>",
"certificate_authority": "letsencrypt",
"renews_before": "<string>"
},
"relying_party_identifier": "<string>"
}Retrieve a custom domain configuration and status.
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.CustomDomains.Get(
context.TODO(),
"id",
)
}{
"custom_domain_id": "cd_0000000000000001",
"domain": "login.mycompany.com",
"primary": false,
"status": "ready",
"type": "self_managed_certs",
"is_default": false,
"origin_domain_name": "mycompany_cd_0000000000000001.edge.tenants.auth0.com",
"verification": {
"methods": [
{
"name": "txt",
"record": "auth0-domain-verification=...",
"domain": "_cf-custom-hostname.login.mycompany.com"
}
],
"status": "verified",
"error_msg": "<string>",
"last_verified_at": "<string>"
},
"custom_client_ip_header": "<string>",
"tls_policy": "recommended",
"domain_metadata": {},
"certificate": {
"status": "provisioning",
"error_msg": "<string>",
"certificate_authority": "letsencrypt",
"renews_before": "<string>"
},
"relying_party_identifier": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://auth0-feat-custom-rate-limit-policies.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID of the custom domain to retrieve.
Custom domain successfully retrieved.
ID of the custom domain.
Domain name.
Whether this is a primary domain (true) or not (false).
Custom domain configuration status. Can be failed, pending_verification, or ready.
pending_verification, ready, failed Custom domain provisioning type. Can be auth0_managed_certs or self_managed_certs.
auth0_managed_certs, self_managed_certs Whether this is the default custom domain (true) or not (false).
Intermediate address.
Domain verification settings.
Show child attributes
The HTTP header to fetch the client's IP address
The TLS version policy
Domain metadata associated with the custom domain, in the form of an object with string values (max 255 chars). Maximum of 10 domain metadata properties allowed.
Show child attributes
Certificate information. This object is relevant only for Custom Domains with Auth0-Managed Certificates.
Show child attributes
Relying Party ID (rpId) to be used for Passkeys on this custom domain. If not present, the full domain will be used.
このページは役に立ちましたか?