summaryrefslogtreecommitdiff
path: root/src/saml2/pack.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2015-06-27 09:09:48 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2015-06-27 09:09:48 +0200
commited1bb3362d1f83f0611730530330bf19bc117cb8 (patch)
treea244ec47215dd0bb3dd6369b50290ffa343cc1b6 /src/saml2/pack.py
parentb7f618bde5b24c6e0a6c1b40c3748af8b56defaf (diff)
downloadpysaml2-ed1bb3362d1f83f0611730530330bf19bc117cb8.tar.gz
Improve support for SigAlg usage in HTTP redirect.
Diffstat (limited to 'src/saml2/pack.py')
-rw-r--r--src/saml2/pack.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/saml2/pack.py b/src/saml2/pack.py
index 9a98704f..91b6f976 100644
--- a/src/saml2/pack.py
+++ b/src/saml2/pack.py
@@ -45,7 +45,7 @@ FORM_SPEC = """<form method="post" action="%s">
def http_form_post_message(message, location, relay_state="",
- typ="SAMLRequest"):
+ typ="SAMLRequest", **kwargs):
"""The HTTP POST binding defines a mechanism by which SAML protocol
messages may be transmitted within the base64-encoded content of a
HTML form control.
@@ -80,7 +80,7 @@ def http_form_post_message(message, location, relay_state="",
def http_redirect_message(message, location, relay_state="", typ="SAMLRequest",
- sigalg=None, key=None):
+ sigalg=None, key=None, **kwargs):
"""The HTTP Redirect binding defines a mechanism by which SAML protocol
messages can be transmitted within URL parameters.
Messages are encoded for use with this binding using a URL encoding
@@ -256,5 +256,6 @@ def packager(identifier):
raise Exception("Unknown binding type: %s" % identifier)
-def factory(binding, message, location, relay_state="", typ="SAMLRequest"):
- return PACKING[binding](message, location, relay_state, typ)
+def factory(binding, message, location, relay_state="", typ="SAMLRequest",
+ **kwargs):
+ return PACKING[binding](message, location, relay_state, typ, **kwargs)