Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/oidcrp/configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@


class RPConfiguration(Base):

uris = URIS

def __init__(self,
conf: Dict,
base_path: Optional[str] = '',
Expand Down Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions tests/test_22_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down