diff --git a/src/oidcrp/configure.py b/src/oidcrp/configure.py index 800d24f..5e33fb7 100755 --- a/src/oidcrp/configure.py +++ b/src/oidcrp/configure.py @@ -24,6 +24,9 @@ class RPConfiguration(Base): + + uris = URIS + def __init__(self, conf: Dict, base_path: Optional[str] = '', @@ -52,6 +55,7 @@ def __init__(self, self.services = lower_or_upper(conf, "services") self.base_url = lower_or_upper(conf, "base_url") self.httpc_params = lower_or_upper(conf, "httpc_params", {"verify": True}) + self.clients = lower_or_upper(conf, "clients") if entity_conf: self.extend(entity_conf=entity_conf, conf=conf, base_path=base_path, diff --git a/tests/test_22_config.py b/tests/test_22_config.py index bc29a52..8c77bbd 100644 --- a/tests/test_22_config.py +++ b/tests/test_22_config.py @@ -22,6 +22,9 @@ def test_yaml_config(): assert set(rp_config.services.keys()) == {'discovery', 'registration', 'authorization', 'accesstoken', 'userinfo', 'end_session'} assert set(rp_config.clients.keys()) == {'', 'bobcat', 'flop'} + assert rp_config.clients['flop'] + assert rp_config.clients['flop']['redirect_uris'] + assert set(rp_config.clients['flop']['redirect_uris']) == {'https://127.0.0.1:8090/authz_cb/flop'} def test_dict():