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

Commit 46fd37a

Browse files
committed
Sub_func has to be done before session_db.
1 parent c1a6066 commit 46fd37a

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/oidcendpoint/endpoint_context.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def __init__(
136136
self.args = {}
137137

138138
# session db
139-
self._sub_func = None
139+
self._sub_func = {}
140+
self.do_sub_func(self.conf)
140141
self.sdb = session_db
141142
if not self.sdb:
142143
self.set_session_db(conf, sso_db)
@@ -198,8 +199,7 @@ def __init__(
198199
args = {k: v for k, v in conf["jwks"].items() if k != "uri_path"}
199200
self.keyjar = init_key_jar(**args)
200201

201-
for item in ['cookie_dealer', "sub_func", "authz", "authentication",
202-
"id_token", "scope2claims"]:
202+
for item in ['cookie_dealer', "authz", "authentication", "id_token", "scope2claims"]:
203203
_func = getattr(self, "do_{}".format(item), None)
204204
if _func:
205205
_func(self.conf)
@@ -297,7 +297,6 @@ def do_cookie_dealer(self, conf):
297297

298298
def do_sub_func(self, conf):
299299
_conf = conf.get("sub_func", {})
300-
self._sub_func = {}
301300
for key, args in _conf.items():
302301
if "class" in args:
303302
self._sub_func[key] = init_service(args)

0 commit comments

Comments
 (0)