Skip to content

Commit 610443b

Browse files
[fern-replay] Applied customizations
Patches applied (1): - patch-3bac717a: Restore Auth0 telemetry headers and keep UPGRADING.md (#900)
1 parent 1ee1f94 commit 610443b

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

‎.fern/replay.lock‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,20 @@ generations:
3030
cli_version: unknown
3131
generator_versions:
3232
fernapi/fern-python-sdk: 5.26.0
33-
current_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a
33+
- commit_sha: 409145489efe540747e53517ece13087ed7a1fb8
34+
tree_hash: e822049a6625f20ef7c1cfcc775f7ced9b541947
35+
timestamp: 2026-11-24T05:40:27.276Z
36+
cli_version: unknown
37+
generator_versions:
38+
fernapi/fern-python-sdk: 5.26.0
39+
current_generation: 409145489efe540747e53517ece13087ed7a1fb8
3440
patches:
3541
- id: patch-3bac717a
3642
content_hash: sha256:f4ad3ba43b0430fa3dfb54bfcf588cb697efe8185eb30350f9955849f831083f
3743
original_commit: 3bac717acae703868197afb75fc26d296957a4fd
3844
original_message: Restore Auth0 telemetry headers and keep UPGRADING.md (#900)
3945
original_author: Kunal Dawar <35455566+developerkunal@users.noreply.github.com>
40-
base_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a
46+
base_generation: 409145489efe540747e53517ece13087ed7a1fb8
4147
files:
4248
- src/auth0/management/core/client_wrapper.py
4349
patch_content: |

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# This file was auto-generated by Fern from our API Definition.
2+
# Modified by Auth0 to use Auth0 telemetry format with dynamic versioning
23

4+
import base64
5+
import platform
6+
import sys
37
import typing
8+
from json import dumps
49

510
import httpx
611
from .http_client import AsyncHttpClient, HttpClient
@@ -30,7 +35,18 @@ def __init__(
3035
self._logging = logging
3136

3237
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+
3347
headers: typing.Dict[str, str] = {
48+
"User-Agent": f"Python/{py_version}",
49+
"Auth0-Client": base64.b64encode(auth0_client).decode(),
3450
**(self.get_custom_headers() or {}),
3551
}
3652
headers["Authorization"] = f"Bearer {self._get_token()}"

0 commit comments

Comments
 (0)