Skip to content

Conversation

@tanya732
Copy link
Contributor

@tanya732 tanya732 commented Oct 31, 2025

Changes

As part of MCD Enhanced EA Changes, added q, include_fields, fields and sort query params in /custom-domains endpoint

Manual Testing

Install npm install auth0
Get Domain, CLientId and ClientSecret from Auth0 Dashboard

// Create Management Client Instance
  const client = new AuthenticationClient({
  domain: '<DOMAIN>,
  clientId: '<CLIENT_ID>',
  clientSecret: '<CLIENT_SECRET>',
});

//Retrieve configuration details for all custom domains, with filtering(q, include_fields, fields, sort and pagination support.
const queryParams: GetCustomDomainsRequest = {
      take: 3,
      from: "<Id to choose>",
      include_fields: true,
      fields: "custom_domain_id,domain,type,primary"
 }
const getAllCustomDomains = await client.customDomains.getAll(queryParams);
console.log('getAllCustomDomains Response Data:', getAllCustomDomains.data);

Response: 
custom_domains: [
    {
      custom_domain_id: '<ID-1>',
      domain: 'test.acmetest.org',
      type: 'auth0_managed_certs',
      primary: true
    },
    {
      custom_domain_id: '<ID-2>',
      domain: 'test1.dummy.com',
      type: 'auth0_managed_certs',
      primary: false
    },
    {
      custom_domain_id: '<ID-3>',
      domain: 'test26.dummy.com',
      type: 'auth0_managed_certs',
      primary: false
    }
  ]

@tanya732 tanya732 merged commit d6503d7 into v4 Nov 4, 2025
1 check passed
@tanya732 tanya732 deleted the sdk-6424-mcd-enhanced-ea-support branch November 4, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants