Patch from tobes@github.com
This commit is contained in:
@@ -26,6 +26,8 @@ import shelve
|
|||||||
import traceback
|
import traceback
|
||||||
from urlparse import parse_qs, urlparse
|
from urlparse import parse_qs, urlparse
|
||||||
|
|
||||||
|
from StringIO import StringIO
|
||||||
|
|
||||||
from paste.httpexceptions import HTTPSeeOther, HTTPRedirection
|
from paste.httpexceptions import HTTPSeeOther, HTTPRedirection
|
||||||
from paste.httpexceptions import HTTPNotImplemented
|
from paste.httpexceptions import HTTPNotImplemented
|
||||||
from paste.httpexceptions import HTTPInternalServerError
|
from paste.httpexceptions import HTTPInternalServerError
|
||||||
@@ -480,6 +482,8 @@ class SAML2Plugin(object):
|
|||||||
# Not for me, put the post back where next in line can
|
# Not for me, put the post back where next in line can
|
||||||
# find it
|
# find it
|
||||||
environ["post.fieldstorage"] = post
|
environ["post.fieldstorage"] = post
|
||||||
|
# restore wsgi.input incase that is needed
|
||||||
|
environ['wsgi.input'] = StringIO(environ['s2repoze.body'])
|
||||||
return {}
|
return {}
|
||||||
else:
|
else:
|
||||||
logger.info("[sp.identify] --- SAMLResponse ---")
|
logger.info("[sp.identify] --- SAMLResponse ---")
|
||||||
|
Reference in New Issue
Block a user