summaryrefslogtreecommitdiff
path: root/src/saml2/mdstore.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2016-05-14 17:04:34 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2016-05-14 17:04:34 +0200
commitb0f11a4ebde4a3dea8aedf7b5c7ddefaf9455e2d (patch)
tree7a245b391a5cee679b9f3b1b1efaddb4d64f6fc4 /src/saml2/mdstore.py
parent9c04dc7ebbae1791b4234bc0f4f2949f1fe9f3c4 (diff)
parentecb3dfbea5ef9df9d51ce894fe19f89f589c3dc1 (diff)
downloadpysaml2-b0f11a4ebde4a3dea8aedf7b5c7ddefaf9455e2d.tar.gz
Merge pull request #330 from rebeckag/remote-md_format_check
Explicitly signal incorrect 'remote' metadata conf.
Diffstat (limited to 'src/saml2/mdstore.py')
-rw-r--r--src/saml2/mdstore.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py
index 018f454a..28d6061b 100644
--- a/src/saml2/mdstore.py
+++ b/src/saml2/mdstore.py
@@ -850,6 +850,8 @@ class MetadataStore(MetaData):
kwargs.update(_args)
_md = InMemoryMetaData(self.attrc, args[1])
elif typ == "remote":
+ if "url" not in kwargs:
+ raise ValueError("Remote metadata must be structured as a dict containing the key 'url'")
key = kwargs["url"]
for _key in ["node_name", "check_validity"]:
try: