Skip to content

Commit 5ffe003

Browse files
[fern-replay] Resolved conflicts
Patches replayed: - patch-4894603d: chore: Restore custom wiring in management/__init__.py - patch-7271f157: Revert wrapper file to preserve Auth0 telemetry customizations - patch-c04f0b4d: Fix for incorrect return type and missing __all__ type - patch-95211006: Restore Auth0 telemetry and custom client wiring after regeneration - patch-f7384913: Remove duplicate FedCmLoginGooglePatch and FedCmLoginPatch entries - patch-1e44613d: Added migration guide for v5 to v6 - patch-30b1089a: Updated UPGRADING.md doc - patch-d6d69aeb: Remove duplicate FedCmLoginGooglePatch and FedCmLoginPatch entries
1 parent 96dca58 commit 5ffe003

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

‎.fern/replay.lock‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8856,7 +8856,7 @@ patches:
88568856
"verifiable_credentials",
88578857
]
88588858
user_owned: true
8859-
status: unresolved
8859+
status: resolving
88608860
- id: patch-7271f157
88618861
content_hash: sha256:cd98dd1948587cf3396a2eacf46626176784bd00996eb660374161bfef686e93
88628862
original_commit: 7271f15759cfb545c9ef82b5a4f519ffe0a89db2
@@ -9037,7 +9037,7 @@ patches:
90379037
token = await self._async_token()
90389038
headers["Authorization"] = f"Bearer {token}"
90399039
return headers
9040-
status: unresolved
9040+
status: resolving
90419041
- id: patch-c04f0b4d
90429042
content_hash: sha256:b56317f901bea2a9448227a5dcc0bbd6878bc3f01e31ba601803c3ab93c573ef
90439043
original_commit: c04f0b4dbbe8f2300f4f1bf42f62350888a92da5
@@ -30892,7 +30892,7 @@ patches:
3089230892
headers["Authorization"] = f"Bearer {token}"
3089330893
return headers
3089430894
user_owned: true
30895-
status: unresolved
30895+
status: resolving
3089630896
- id: patch-f7384913
3089730897
content_hash: sha256:b56317f901bea2a9448227a5dcc0bbd6878bc3f01e31ba601803c3ab93c573ef
3089830898
original_commit: f7384913ab0a14df83dbc602d2b694e2cb7b7668

‎src/auth0/management/__init__.py‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,8 +2514,6 @@
25142514
FedCmLoginGoogle,
25152515
FedCmLoginGooglePatch,
25162516
FedCmLoginPatch,
2517-
FedCmLoginGooglePatch,
2518-
FedCmLoginPatch,
25192517
FlowAction,
25202518
FlowActionActivecampaign,
25212519
FlowActionActivecampaignListContacts,
@@ -3935,8 +3933,6 @@
39353933
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
39363934
from .token_provider import AsyncTokenProvider, TokenProvider
39373935
from .version import __version__
3938-
from .management_client import AsyncManagementClient, CustomDomainHeader, ManagementClient
3939-
from .token_provider import AsyncTokenProvider, TokenProvider
39403936
_dynamic_imports: typing.Dict[str, str] = {
39413937
"Action": ".types",
39423938
"ActionBase": ".types",
@@ -5027,7 +5023,6 @@
50275023
"CspReportingEndpoints": ".types",
50285024
"CspReportingInfrastructure": ".types",
50295025
"CustomDomain": ".types",
5030-
"CustomDomainHeader": ".management_client",
50315026
"CustomDomainCustomClientIpHeader": ".types",
50325027
"CustomDomainCustomClientIpHeaderEnum": ".types",
50335028
"CustomDomainHeader": ".management_client",
@@ -6458,8 +6453,6 @@
64586453
"FedCmLoginGoogle": ".types",
64596454
"FedCmLoginGooglePatch": ".types",
64606455
"FedCmLoginPatch": ".types",
6461-
"FedCmLoginGooglePatch": ".types",
6462-
"FedCmLoginPatch": ".types",
64636456
"FlowAction": ".types",
64646457
"FlowActionActivecampaign": ".types",
64656458
"FlowActionActivecampaignListContacts": ".types",
@@ -8981,7 +8974,6 @@ def __dir__():
89818974
"CspReportingEndpoints",
89828975
"CspReportingInfrastructure",
89838976
"CustomDomain",
8984-
"CustomDomainHeader",
89858977
"CustomDomainCustomClientIpHeader",
89868978
"CustomDomainCustomClientIpHeaderEnum",
89878979
"CustomDomainHeader",
@@ -10412,8 +10404,6 @@ def __dir__():
1041210404
"FedCmLoginGoogle",
1041310405
"FedCmLoginGooglePatch",
1041410406
"FedCmLoginPatch",
10415-
"FedCmLoginGooglePatch",
10416-
"FedCmLoginPatch",
1041710407
"FlowAction",
1041810408
"FlowActionActivecampaign",
1041910409
"FlowActionActivecampaignListContacts",

‎src/auth0/management/core/client_wrapper.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,18 @@ def __init__(
3535
self._logging = logging
3636

3737
def get_headers(self) -> typing.Dict[str, str]:
38+
py_version = platform.python_version()
39+
version = sys.modules["auth0"].__version__
40+
41+
auth0_client = dumps({
42+
"name": "auth0-python",
43+
"version": version,
44+
"env": {"python": py_version}
45+
}).encode("utf-8")
46+
3847
headers: typing.Dict[str, str] = {
48+
"User-Agent": f"Python/{py_version}",
49+
"Auth0-Client": base64.b64encode(auth0_client).decode(),
3950
**(self.get_custom_headers() or {}),
4051
}
4152
headers["Authorization"] = f"Bearer {self._get_token()}"

0 commit comments

Comments
 (0)