File tree Expand file tree Collapse file tree
src/auth0/management/core Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3440patches:
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: |
Original file line number Diff line number Diff line change 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
37import typing
8+ from json import dumps
49
510import httpx
611from .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 ()} "
You can’t perform that action at this time.
0 commit comments