Skip to content

Commit e8aeaaf

Browse files
authored
Introduce HTTPClient to encapsulate the different mgmt keys needs (#633)
1 parent 351cba5 commit e8aeaaf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1891
-1038
lines changed

descope/_auth_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ class AuthBase:
77

88
def __init__(self, auth: Auth):
99
self._auth = auth
10+
self._http = auth.http_client

descope/_http_base.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from __future__ import annotations
2+
3+
from descope.http_client import HTTPClient
4+
5+
6+
class HTTPBase:
7+
"""Base class for classes that only need HTTP access."""
8+
9+
def __init__(self, http_client: HTTPClient):
10+
self._http = http_client

0 commit comments

Comments
 (0)