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

Commit

Permalink
chore: warning message on unknown configuration params
Browse files Browse the repository at this point in the history
  • Loading branch information
peppelinux committed Oct 26, 2021
1 parent 0123d25 commit f361dc5
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions src/oidcop/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,15 @@ def __init__(
self.format(_val, base_path=base_path, file_attributes=file_attributes,
domain=domain, port=port)
else:
logger.warning(
f"{key} is not a valid configuration parameter"
continue

if key not in DEFAULT_EXTENDED_CONF:
logger.warning(
f"{key} not seems to be a valid configuration parameter"
)
elif not _val:
logger.warning(
f"{key} not configured, using default configuration values"
)

if key == "template_dir":
Expand Down Expand Up @@ -589,4 +596,23 @@ def __init__(
},
},
"userinfo": {"class": "oidcop.user_info.UserInfo", "kwargs": {"db_file": "users.json"}, },
"scopes_to_claims": SCOPE2CLAIMS,
"session_params": {
"password": "ses_key",
"salt": "ses_salt",
"sub_func": {
"public": {
"class": "oidcop.session.manager.PublicID",
"kwargs": {
"salt": "mysalt"
}
},
"pairwise": {
"class": "oidcop.session.manager.PairWiseID",
"kwargs": {
"salt": "mysalt"
}
}
}
},
}

0 comments on commit f361dc5

Please sign in to comment.