From ecb3dfbea5ef9df9d51ce894fe19f89f589c3dc1 Mon Sep 17 00:00:00 2001 From: Rebecka Gulliksson Date: Tue, 3 May 2016 09:19:30 +0200 Subject: [PATCH] Explicitly signal incorrect 'remote' metadata conf. --- src/saml2/mdstore.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/saml2/mdstore.py b/src/saml2/mdstore.py index 07f199e..1d85d6a 100644 --- a/src/saml2/mdstore.py +++ b/src/saml2/mdstore.py @@ -847,6 +847,8 @@ class MetadataStore(MetaData): kwargs.update(_args) _md = InMemoryMetaData(self.attrc, args[0]) 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: