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

Commit b7fb886

Browse files
committed
better create_session_db args handling
1 parent 277769b commit b7fb886

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/oidcendpoint/session.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,10 +568,9 @@ def get_authentication_event(self, sid):
568568

569569

570570
def create_session_db(ec, token_handler_args, db=None,
571-
sso_db=SSODb(), sub_func=None):
571+
sso_db=None, sub_func=None):
572572
_token_handler = token_handler.factory(ec, **token_handler_args)
573573

574-
if not db:
575-
db = InMemoryDataBase()
576-
574+
db = db or InMemoryDataBase()
575+
sso_db = sso_db or SSODb()
577576
return SessionDB(db, _token_handler, sso_db, sub_func=sub_func)

0 commit comments

Comments
 (0)