From 468b1bad63a5f8c8370fdc3ffdfb47c6869c0251 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Mon, 29 Jul 2013 18:50:58 +0200 Subject: [PATCH] Patch from tobes@github.com --- src/s2repoze/plugins/sp.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/s2repoze/plugins/sp.py b/src/s2repoze/plugins/sp.py index 94b7800..d5cbe0f 100644 --- a/src/s2repoze/plugins/sp.py +++ b/src/s2repoze/plugins/sp.py @@ -26,6 +26,8 @@ import shelve import traceback from urlparse import parse_qs, urlparse +from StringIO import StringIO + from paste.httpexceptions import HTTPSeeOther, HTTPRedirection from paste.httpexceptions import HTTPNotImplemented from paste.httpexceptions import HTTPInternalServerError @@ -480,6 +482,8 @@ class SAML2Plugin(object): # Not for me, put the post back where next in line can # find it environ["post.fieldstorage"] = post + # restore wsgi.input incase that is needed + environ['wsgi.input'] = StringIO(environ['s2repoze.body']) return {} else: logger.info("[sp.identify] --- SAMLResponse ---")