Skip to content

Commit cf14487

Browse files
Merge pull request #530 from c00kiemon5ter/feature-set-id-attr-name
Allow configuration and specification of id attribute name
2 parents 134f5d7 + 96948b5 commit cf14487

File tree

6 files changed

+629
-569
lines changed

6 files changed

+629
-569
lines changed

src/saml2/config.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,21 @@
2828

2929

3030
COMMON_ARGS = [
31-
"entityid", "xmlsec_binary", "debug", "key_file", "cert_file",
32-
"encryption_keypairs", "additional_cert_files",
33-
"metadata_key_usage", "secret", "accepted_time_diff", "name", "ca_certs",
34-
"description", "valid_for", "verify_ssl_cert",
31+
"debug",
32+
"entityid",
33+
"xmlsec_binary",
34+
"key_file",
35+
"cert_file",
36+
"encryption_keypairs",
37+
"additional_cert_files",
38+
"metadata_key_usage",
39+
"secret",
40+
"accepted_time_diff",
41+
"name",
42+
"ca_certs",
43+
"description",
44+
"valid_for",
45+
"verify_ssl_cert",
3546
"organization",
3647
"contact_person",
3748
"name_form",
@@ -54,7 +65,8 @@
5465
"validate_certificate",
5566
"extensions",
5667
"allow_unknown_attributes",
57-
"crypto_backend"
68+
"crypto_backend",
69+
"id_attr_name",
5870
]
5971

6072
SP_ARGS = [
@@ -210,6 +222,7 @@ def __init__(self, homedir="."):
210222
self.name_qualifier = ""
211223
self.entity_category = ""
212224
self.crypto_backend = 'xmlsec1'
225+
self.id_attr_name = None
213226
self.scope = ""
214227
self.allow_unknown_attributes = False
215228
self.extension_schema = {}

src/saml2/httputil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class BadGateway(Response):
157157
_status = "502 Bad Gateway"
158158

159159

160-
class HttpParameters():
160+
class HttpParameters(object):
161161
"""GET or POST signature parameters for Redirect or POST-SimpleSign bindings
162162
because they are not contained in XML unlike the POST binding
163163
"""

0 commit comments

Comments
 (0)