Skip to content

Commit c40920d

Browse files
authored
Merge pull request #40 from Authress/optimize-jwks
Optimize jwks
2 parents a9f4ec2 + 714285a commit c40920d

20 files changed

+24
-59
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ This is the changelog for [Authress SDK](readme.md).
33

44
## 3.1 ##
55
* [Breaking] Throw validation error on setting a property that doesn't exist in any of the Authress DTO Models.
6+
* Optimize JWKs fetching using the keyId
67

78
## 3.0 ##
89
* [Breaking] Added type checking everywhere - This means most models have breaking changes.

authress/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from authress.authress_client import AuthressClient
1010
from authress.http_client import HttpClient
1111
from authress.rest import ApiException
12+
from authress.utils.service_client_token_provider import ServiceClientTokenProvider
1213

1314
# import apis into sdk package
1415
from authress.api.access_records_api import AccessRecordsApi

authress/api/access_records_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from authress.models.access_request_response import AccessRequestResponse
3838
from authress.models.claim_request import ClaimRequest
3939

40-
from authress.http_client import HttpClient
4140
from authress.api_response import ApiResponse
4241
from authress.exceptions import ( # noqa: F401
4342
ApiTypeError,
@@ -53,8 +52,6 @@ class AccessRecordsApi(object):
5352
"""
5453

5554
def __init__(self, api_client=None):
56-
if api_client is None:
57-
api_client = HttpClient.get_default()
5855
self.api_client = api_client
5956

6057
@validate_arguments

authress/api/accounts_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from authress.models.identity_collection import IdentityCollection
3838
from authress.models.identity_request import IdentityRequest
3939

40-
from authress.http_client import HttpClient
4140
from authress.api_response import ApiResponse
4241
from authress.exceptions import ( # noqa: F401
4342
ApiTypeError,
@@ -53,8 +52,6 @@ class AccountsApi(object):
5352
"""
5453

5554
def __init__(self, api_client=None):
56-
if api_client is None:
57-
api_client = HttpClient.get_default()
5855
self.api_client = api_client
5956

6057
@validate_arguments

authress/api/applications_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
from authress.models.application_delegation import ApplicationDelegation
3232

33-
from authress.http_client import HttpClient
3433
from authress.api_response import ApiResponse
3534
from authress.exceptions import ( # noqa: F401
3635
ApiTypeError,
@@ -46,8 +45,6 @@ class ApplicationsApi(object):
4645
"""
4746

4847
def __init__(self, api_client=None):
49-
if api_client is None:
50-
api_client = HttpClient.get_default()
5148
self.api_client = api_client
5249

5350
@validate_arguments

authress/api/connections_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from authress.models.connection_collection import ConnectionCollection
3333
from authress.models.user_connection_credentials import UserConnectionCredentials
3434

35-
from authress.http_client import HttpClient
3635
from authress.api_response import ApiResponse
3736
from authress.exceptions import ( # noqa: F401
3837
ApiTypeError,
@@ -48,8 +47,6 @@ class ConnectionsApi(object):
4847
"""
4948

5049
def __init__(self, api_client=None):
51-
if api_client is None:
52-
api_client = HttpClient.get_default()
5350
self.api_client = api_client
5451

5552
@validate_arguments

authress/api/extensions_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
from authress.models.o_auth_token_request import OAuthTokenRequest
3737
from authress.models.o_auth_token_response import OAuthTokenResponse
3838

39-
from authress.http_client import HttpClient
4039
from authress.api_response import ApiResponse
4140
from authress.exceptions import ( # noqa: F401
4241
ApiTypeError,
@@ -52,8 +51,6 @@ class ExtensionsApi(object):
5251
"""
5352

5453
def __init__(self, api_client=None):
55-
if api_client is None:
56-
api_client = HttpClient.get_default()
5754
self.api_client = api_client
5855

5956
@validate_arguments

authress/api/groups_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
from authress.models.group import Group
3434
from authress.models.group_collection import GroupCollection
3535

36-
from authress.http_client import HttpClient
3736
from authress.api_response import ApiResponse
3837
from authress.exceptions import ( # noqa: F401
3938
ApiTypeError,
@@ -49,8 +48,6 @@ class GroupsApi(object):
4948
"""
5049

5150
def __init__(self, api_client=None):
52-
if api_client is None:
53-
api_client = HttpClient.get_default()
5451
self.api_client = api_client
5552

5653
@validate_arguments

authress/api/invites_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from authress.models.account import Account
3232
from authress.models.invite import Invite
3333

34-
from authress.http_client import HttpClient
3534
from authress.api_response import ApiResponse
3635
from authress.exceptions import ( # noqa: F401
3736
ApiTypeError,
@@ -47,8 +46,6 @@ class InvitesApi(object):
4746
"""
4847

4948
def __init__(self, api_client=None):
50-
if api_client is None:
51-
api_client = HttpClient.get_default()
5249
self.api_client = api_client
5350

5451
@validate_arguments

authress/api/resource_permissions_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
from authress.models.permissioned_resource_collection import PermissionedResourceCollection
3535
from authress.models.resource_users_collection import ResourceUsersCollection
3636

37-
from authress.http_client import HttpClient
3837
from authress.api_response import ApiResponse
3938
from authress.exceptions import ( # noqa: F401
4039
ApiTypeError,
@@ -50,8 +49,6 @@ class ResourcePermissionsApi(object):
5049
"""
5150

5251
def __init__(self, api_client=None):
53-
if api_client is None:
54-
api_client = HttpClient.get_default()
5552
self.api_client = api_client
5653

5754
@validate_arguments

0 commit comments

Comments
 (0)