Skip to content
Merged
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",
Comment thread
kishore7snehil marked this conversation as resolved.
"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