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

Commit bfc0618

Browse files
committed
removed unused import in endpoint_context
1 parent 10f306d commit bfc0618

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

src/oidcendpoint/client_authn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def verify_client(
244244
_token = auth_info.get("token")
245245

246246
if client_id:
247-
248247
if not client_id in endpoint_context.cdb:
249248
raise ValueError("Unknown Client ID")
250249

src/oidcendpoint/endpoint_context.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
from oidcendpoint import authz
1212
from oidcendpoint import rndstr
13-
from oidcendpoint import util
1413
from oidcendpoint.client_authn import CLIENT_AUTHN_METHOD
1514
from oidcendpoint.id_token import IDToken
1615
from oidcendpoint.session import create_session_db
@@ -44,7 +43,7 @@ def init_user_info(conf, cwd):
4443
kwargs["db_file"] = os.path.join(cwd, kwargs["db_file"])
4544

4645
if isinstance(conf["class"], str):
47-
return util.importer(conf["class"])(**kwargs)
46+
return importer(conf["class"])(**kwargs)
4847

4948
return conf["class"](**kwargs)
5049

@@ -56,7 +55,7 @@ def init_service(conf, endpoint_context=None):
5655
kwargs["endpoint_context"] = endpoint_context
5756

5857
if isinstance(conf["class"], str):
59-
return util.importer(conf["class"])(**kwargs)
58+
return importer(conf["class"])(**kwargs)
6059

6160
return conf["class"](**kwargs)
6261

@@ -284,7 +283,7 @@ def do_sub_func(self):
284283
self._sub_func[key] = init_service(args)
285284
elif "function" in args:
286285
if isinstance(args["function"], str):
287-
self._sub_func[key] = util.importer(args["function"])
286+
self._sub_func[key] = importer(args["function"])
288287
else:
289288
self._sub_func[key] = args["function"]
290289

src/oidcendpoint/oidc/authorization.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def get_uri(endpoint_context, request, uri_type):
191191
verify_uri(endpoint_context, request, uri_type)
192192
uri = request[uri_type]
193193
else:
194-
195194
uris = "{}s".format(uri_type)
196195
client_id = str(request["client_id"])
197196
if client_id in endpoint_context.cdb:

0 commit comments

Comments
 (0)