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

Commit 022ebc4

Browse files
committed
Place holder for adding default path specification.
1 parent 460b144 commit 022ebc4

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/oidcendpoint/util.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,14 @@ def build_endpoints(conf, endpoint_context, client_authn_method, issuer):
6767
_instance = spec['class'](endpoint_context=endpoint_context,
6868
**kwargs)
6969

70-
_instance.endpoint_path = spec['path']
71-
_instance.full_path = '{}/{}'.format(_url, spec['path'])
70+
try:
71+
_path = spec['path']
72+
except KeyError:
73+
# Should there be a default ?
74+
raise
75+
76+
_instance.endpoint_path = _path
77+
_instance.full_path = '{}/{}'.format(_url, _path)
7278
if 'provider_info' in spec:
7379
_instance.provider_info = spec['provider_info']
7480

0 commit comments

Comments
 (0)