Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit 22c6aba

Browse files
committed
Don't set get_client_id_from_token to None
1 parent fe3cc63 commit 22c6aba

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/oidcop/endpoint.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class Endpoint(object):
9191
response_placement = "body"
9292
client_authn_method = ""
9393
default_capabilities = None
94-
get_client_id_from_token = None
9594

9695
def __init__(self, server_get: Callable, **kwargs):
9796
self.server_get = server_get
@@ -222,7 +221,7 @@ def client_authentication(self, request: Message, http_info: Optional[dict] = No
222221
endpoint_context=self.server_get("endpoint_context"),
223222
request=request,
224223
http_info=http_info,
225-
get_client_id_from_token=self.get_client_id_from_token,
224+
get_client_id_from_token=getattr(self, "get_client_id_from_token", None),
226225
**kwargs
227226
)
228227

0 commit comments

Comments
 (0)