Skip to content

Commit b0f11a4

Browse files
author
Roland Hedberg
committed
Merge pull request #330 from rebeckag/remote-md_format_check
Explicitly signal incorrect 'remote' metadata conf.
2 parents 9c04dc7 + ecb3dfb commit b0f11a4

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
@@ -850,6 +850,8 @@ def load(self, *args, **kwargs):
850850
kwargs.update(_args)
851851
_md = InMemoryMetaData(self.attrc, args[1])
852852
elif typ == "remote":
853+
if "url" not in kwargs:
854+
raise ValueError("Remote metadata must be structured as a dict containing the key 'url'")
853855
key = kwargs["url"]
854856
for _key in ["node_name", "check_validity"]:
855857
try:

0 commit comments

Comments
 (0)