Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/auth0/management/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6640,6 +6640,7 @@ def __dir__():
"CspReportingEndpoints",
"CspReportingInfrastructure",
"CustomDomain",
"CustomDomainHeader",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This __all__ addition fixes the bug in the generated output, but __init__.py is Fern auto-generated. There is a chance that in the next Fern regeneration this line will be wiped.

"CustomDomainCustomClientIpHeader",
"CustomDomainCustomClientIpHeaderEnum",
"CustomDomainProvisioningTypeEnum",
Expand Down
4 changes: 3 additions & 1 deletion src/auth0/management/management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from json import dumps
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union

from .core.request_options import RequestOptions

import httpx
from .client import AsyncAuth0, Auth0
from .token_provider import TokenProvider
Expand Down Expand Up @@ -36,7 +38,7 @@ def _enforce_custom_domain_whitelist(request: httpx.Request) -> None:
del request.headers[CUSTOM_DOMAIN_HEADER]


def CustomDomainHeader(domain: str) -> Dict[str, Any]:
def CustomDomainHeader(domain: str) -> RequestOptions:
"""Create request options that set the Auth0-Custom-Domain header for a single request.

When both a global custom_domain (set at client init) and a per-request
Expand Down
Loading