summaryrefslogtreecommitdiff
path: root/src/saml2/config.py
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2018-08-03 23:02:42 +0300
committerIvan Kanakarakis <ivan.kanak@gmail.com>2018-08-04 02:09:07 +0300
commitc3f6311651ea05347a0b308a023c4c3e8dd23469 (patch)
tree68654c5e6df02eee6f0bc30dc686206c18dc1713 /src/saml2/config.py
parentc9f4bf209816afeb525041f636c88a1fccd1cea6 (diff)
downloadpysaml2-c3f6311651ea05347a0b308a023c4c3e8dd23469.tar.gz
Allow configuration and specification of id attribute name
The id attribute name is used by xmlsec1 to find the correct attribute in the given element that contains the id of the node that will be signed. Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src/saml2/config.py')
-rw-r--r--src/saml2/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/saml2/config.py b/src/saml2/config.py
index 2631d51d..8f90afc8 100644
--- a/src/saml2/config.py
+++ b/src/saml2/config.py
@@ -66,6 +66,7 @@ COMMON_ARGS = [
"extensions",
"allow_unknown_attributes",
"crypto_backend",
+ "id_attr_name",
]
SP_ARGS = [
@@ -221,6 +222,7 @@ class Config(object):
self.name_qualifier = ""
self.entity_category = ""
self.crypto_backend = 'xmlsec1'
+ self.id_attr_name = None
self.scope = ""
self.allow_unknown_attributes = False
self.extension_schema = {}