Skip to content

Commit ecb3dfb

Browse files
author
Rebecka Gulliksson
committed
Explicitly signal incorrect 'remote' metadata conf.
1 parent 01e0faf commit ecb3dfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/saml2/mdstore.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,8 @@ def load(self, typ, *args, **kwargs):
847847
kwargs.update(_args)
848848
_md = InMemoryMetaData(self.attrc, args[0])
849849
elif typ == "remote":
850+
if "url" not in kwargs:
851+
raise ValueError("Remote metadata must be structured as a dict containing the key 'url'")
850852
key = kwargs["url"]
851853
for _key in ["node_name", "check_validity"]:
852854
try:

0 commit comments

Comments
 (0)