Skip to content
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
31 changes: 12 additions & 19 deletions .fern/replay.lock
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,25 @@ generations:
cli_version: unknown
generator_versions:
fernapi/fern-python-sdk: 5.26.0
current_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a
- commit_sha: 44b48ff6a5f9d1ab9ecc4c4dd2b5c62bcecafe7f
tree_hash: 174e3ee4579f57cf83f21f72f332264fa13023c5
timestamp: 2026-12-02T11:46:27.660Z
cli_version: unknown
generator_versions:
fernapi/fern-python-sdk: 5.26.0
current_generation: 44b48ff6a5f9d1ab9ecc4c4dd2b5c62bcecafe7f
patches:
- id: patch-3bac717a
content_hash: sha256:f4ad3ba43b0430fa3dfb54bfcf588cb697efe8185eb30350f9955849f831083f
content_hash: sha256:e881a84480ee7d6831fe330b312e6eae9f152dad7af62c87f627a86a73ae599f
original_commit: 3bac717acae703868197afb75fc26d296957a4fd
original_message: Restore Auth0 telemetry headers and keep UPGRADING.md (#900)
original_author: Kunal Dawar <35455566+developerkunal@users.noreply.github.com>
base_generation: 89e85b537368a6c746f34041680bd4f7fa3cfb5a
base_generation: 44b48ff6a5f9d1ab9ecc4c4dd2b5c62bcecafe7f
files:
- src/auth0/management/core/client_wrapper.py
patch_content: |
diff --git a/src/auth0/management/core/client_wrapper.py b/src/auth0/management/core/client_wrapper.py
index abce2c81..fd991f52 100644
index 88629824..cb014b66 100644
--- a/src/auth0/management/core/client_wrapper.py
+++ b/src/auth0/management/core/client_wrapper.py
@@ -1,6 +1,11 @@
Expand All @@ -57,7 +63,7 @@ patches:

import httpx
from .http_client import AsyncHttpClient, HttpClient
@@ -30,7 +35,18 @@ class BaseClientWrapper:
@@ -28,7 +33,18 @@ class BaseClientWrapper:
self._logging = logging

def get_headers(self) -> typing.Dict[str, str]:
Expand All @@ -75,7 +81,7 @@ patches:
+ "Auth0-Client": base64.b64encode(auth0_client).decode(),
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
theirs_snapshot:
src/auth0/management/core/client_wrapper.py: |
# This file was auto-generated by Fern from our API Definition.
Expand All @@ -96,7 +102,6 @@ patches:
def __init__(
self,
*,
token: typing.Union[str, typing.Callable[[], str]],
headers: typing.Optional[typing.Dict[str, str]] = None,
base_url: str,
timeout: typing.Optional[float] = None,
Expand All @@ -105,7 +110,6 @@ patches:
max_stream_reconnection_attempts: typing.Optional[int] = None,
logging: typing.Optional[typing.Union[LogConfig, Logger]] = None,
):
self._token = token
self._headers = headers
self._base_url = base_url
self._timeout = timeout
Expand All @@ -129,15 +133,8 @@ patches:
"Auth0-Client": base64.b64encode(auth0_client).decode(),
**(self.get_custom_headers() or {}),
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers

def _get_token(self) -> str:
if isinstance(self._token, str):
return self._token
else:
return self._token()

def get_custom_headers(self) -> typing.Optional[typing.Dict[str, str]]:
return self._headers

Expand All @@ -161,7 +158,6 @@ patches:
def __init__(
self,
*,
token: typing.Union[str, typing.Callable[[], str]],
headers: typing.Optional[typing.Dict[str, str]] = None,
base_url: str,
timeout: typing.Optional[float] = None,
Expand All @@ -172,7 +168,6 @@ patches:
httpx_client: httpx.Client,
):
super().__init__(
token=token,
headers=headers,
base_url=base_url,
timeout=timeout,
Expand All @@ -195,7 +190,6 @@ patches:
def __init__(
self,
*,
token: typing.Union[str, typing.Callable[[], str]],
headers: typing.Optional[typing.Dict[str, str]] = None,
base_url: str,
timeout: typing.Optional[float] = None,
Expand All @@ -207,7 +201,6 @@ patches:
httpx_client: httpx.AsyncClient,
):
super().__init__(
token=token,
headers=headers,
base_url=base_url,
timeout=timeout,
Expand Down
Loading
Loading