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

Commit f361dc5

Browse files
committed
chore: warning message on unknown configuration params
1 parent 0123d25 commit f361dc5

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

src/oidcop/configure.py

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,15 @@ def __init__(
243243
self.format(_val, base_path=base_path, file_attributes=file_attributes,
244244
domain=domain, port=port)
245245
else:
246-
logger.warning(
247-
f"{key} is not a valid configuration parameter"
246+
continue
247+
248+
if key not in DEFAULT_EXTENDED_CONF:
249+
logger.warning(
250+
f"{key} not seems to be a valid configuration parameter"
251+
)
252+
elif not _val:
253+
logger.warning(
254+
f"{key} not configured, using default configuration values"
248255
)
249256

250257
if key == "template_dir":
@@ -589,4 +596,23 @@ def __init__(
589596
},
590597
},
591598
"userinfo": {"class": "oidcop.user_info.UserInfo", "kwargs": {"db_file": "users.json"}, },
599+
"scopes_to_claims": SCOPE2CLAIMS,
600+
"session_params": {
601+
"password": "ses_key",
602+
"salt": "ses_salt",
603+
"sub_func": {
604+
"public": {
605+
"class": "oidcop.session.manager.PublicID",
606+
"kwargs": {
607+
"salt": "mysalt"
608+
}
609+
},
610+
"pairwise": {
611+
"class": "oidcop.session.manager.PairWiseID",
612+
"kwargs": {
613+
"salt": "mysalt"
614+
}
615+
}
616+
}
617+
},
592618
}

0 commit comments

Comments
 (0)