From 8659ae2f123cd795de76aafcc667083b44e6caab Mon Sep 17 00:00:00 2001 From: Paul Korzhyk Date: Fri, 14 Dec 2012 23:50:02 +1100 Subject: [PATCH] Support raw metadata in the config dict --- src/saml2/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/saml2/config.py b/src/saml2/config.py index 92f0386..eba555c 100644 --- a/src/saml2/config.py +++ b/src/saml2/config.py @@ -263,6 +263,11 @@ class Config(object): if "local" in metadata_conf: for mdfile in metadata_conf["local"]: metad.import_metadata(open(mdfile).read(), mdfile) + if "inline" in metadata_conf: + index = 1 + for md in metadata_conf["inline"]: + metad.import_metadata(md, "inline_xml.%d" % index) + index += 1 if "remote" in metadata_conf: for spec in metadata_conf["remote"]: try: