editorial
This commit is contained in:
@@ -7,7 +7,7 @@ import sys
|
|||||||
from saml2 import metadata
|
from saml2 import metadata
|
||||||
from saml2.assertion import Policy
|
from saml2.assertion import Policy
|
||||||
from saml2.attribute_converter import ac_factory, AttributeConverter
|
from saml2.attribute_converter import ac_factory, AttributeConverter
|
||||||
from saml2 import BINDING_HTTP_REDIRECT, BINDING_HTTP_POST, BINDING_SOAP
|
from saml2 import BINDING_HTTP_REDIRECT, BINDING_SOAP
|
||||||
from saml2.metadata import ENDPOINTS, DEFAULT_BINDING
|
from saml2.metadata import ENDPOINTS, DEFAULT_BINDING
|
||||||
|
|
||||||
class MissingValue(Exception):
|
class MissingValue(Exception):
|
||||||
@@ -29,6 +29,7 @@ def entity_id2url(meta, entity_id):
|
|||||||
res[typ] = val
|
res[typ] = val
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
||||||
class Config(dict):
|
class Config(dict):
|
||||||
def load_metadata(self, metadata_conf, xmlsec_binary, acs):
|
def load_metadata(self, metadata_conf, xmlsec_binary, acs):
|
||||||
""" Loads metadata into an internal structure """
|
""" Loads metadata into an internal structure """
|
||||||
@@ -62,8 +63,7 @@ class Config(dict):
|
|||||||
config["key_file"] = None
|
config["key_file"] = None
|
||||||
|
|
||||||
if "attribute_map_dir" in config:
|
if "attribute_map_dir" in config:
|
||||||
config["attrconverters"] = ac_factory(
|
config["attrconverters"] = ac_factory(config["attribute_map_dir"])
|
||||||
config["attribute_map_dir"])
|
|
||||||
else:
|
else:
|
||||||
config["attrconverters"] = [AttributeConverter()]
|
config["attrconverters"] = [AttributeConverter()]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user