summaryrefslogtreecommitdiff
path: root/src/saml2/httputil.py
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2015-11-13 15:41:31 +0100
committerRoland Hedberg <roland.hedberg@adm.umu.se>2015-11-13 15:41:31 +0100
commit17c748f516d6abe5f9f39e3c69e523b8f8177195 (patch)
tree2b1e5de9f2664807edb44e849f549031c554294c /src/saml2/httputil.py
parent373668e1d32d00822330183cad9e4f7a12d0b3fc (diff)
downloadpysaml2-17c748f516d6abe5f9f39e3c69e523b8f8177195.tar.gz
The IdP doing form_post or the SP doing post is two different things.
Diffstat (limited to 'src/saml2/httputil.py')
-rw-r--r--src/saml2/httputil.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/saml2/httputil.py b/src/saml2/httputil.py
index 360982d5..607baed5 100644
--- a/src/saml2/httputil.py
+++ b/src/saml2/httputil.py
@@ -17,7 +17,6 @@ from saml2 import time_util
__author__ = 'rohe0002'
-
logger = logging.getLogger(__name__)
@@ -73,8 +72,8 @@ class Created(Response):
class Redirect(Response):
_template = '<html>\n<head><title>Redirecting to %s</title></head>\n' \
- '<body>\nYou are being redirected to <a href="%s">%s</a>\n' \
- '</body>\n</html>'
+ '<body>\nYou are being redirected to <a href="%s">%s</a>\n' \
+ '</body>\n</html>'
_status = '302 Found'
def __call__(self, environ, start_response, **kwargs):
@@ -86,8 +85,8 @@ class Redirect(Response):
class SeeOther(Response):
_template = '<html>\n<head><title>Redirecting to %s</title></head>\n' \
- '<body>\nYou are being redirected to <a href="%s">%s</a>\n' \
- '</body>\n</html>'
+ '<body>\nYou are being redirected to <a href="%s">%s</a>\n' \
+ '</body>\n</html>'
_status = '303 See Other'
def __call__(self, environ, start_response, **kwargs):
@@ -156,6 +155,7 @@ class HttpParameters():
except KeyError:
pass
+
def extract(environ, empty=False, err=False):
"""Extracts strings in form data and returns a dict.
@@ -266,7 +266,7 @@ def unpack_artifact(environ):
def unpack_any(environ):
if environ['REQUEST_METHOD'].upper() == 'GET':
- # Could be either redirect or artifact
+ # Could be either redirect or artifact
_dict = unpack_redirect(environ)
if "ID" in _dict:
binding = BINDING_URI
@@ -307,7 +307,7 @@ def cookie_signature(seed, *parts):
return sha1.hexdigest()
-def make_cookie(name, load, seed, expire=0, domain="", path="",
+def make_cookie(name, load, seed, expire=0, domain="", path="",
timestamp=""):
"""
Create and return a cookie