Skip to content

Commit 468b1ba

Browse files
author
Roland Hedberg
committed
1 parent b5bac9f commit 468b1ba

File tree

1 file changed

+4
-0
lines changed
  • src/s2repoze/plugins

1 file changed

+4
-0
lines changed

src/s2repoze/plugins/sp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
import traceback
2727
from urlparse import parse_qs, urlparse
2828

29+
from StringIO import StringIO
30+
2931
from paste.httpexceptions import HTTPSeeOther, HTTPRedirection
3032
from paste.httpexceptions import HTTPNotImplemented
3133
from paste.httpexceptions import HTTPInternalServerError
@@ -480,6 +482,8 @@ def identify(self, environ):
480482
# Not for me, put the post back where next in line can
481483
# find it
482484
environ["post.fieldstorage"] = post
485+
# restore wsgi.input incase that is needed
486+
environ['wsgi.input'] = StringIO(environ['s2repoze.body'])
483487
return {}
484488
else:
485489
logger.info("[sp.identify] --- SAMLResponse ---")

0 commit comments

Comments
 (0)