From 12256561b748f9a9e01faa8aeaa9f14eb257d1ca Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Mon, 8 Jul 2013 15:25:06 -0700 Subject: [PATCH] Configure whether unknown attribute should be allowed or not. --- src/saml2/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/saml2/config.py b/src/saml2/config.py index 1a936ba..0ee5294 100644 --- a/src/saml2/config.py +++ b/src/saml2/config.py @@ -78,7 +78,8 @@ SP_ARGS = [ "discovery_response", "allow_unsolicited", "ecp", - "name_id_format" + "name_id_format", + "allow_unknown_attributes" ] AA_IDP_ARGS = [ @@ -194,6 +195,7 @@ class Config(object): self.entity_category = "" self.crypto_backend = 'xmlsec1' self.scope = "" + self.allow_unknown_attributes = False def setattr(self, context, attr, val): if context == "":