File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,9 @@ def identify(self, environ):
496496 # find it
497497 environ ["post.fieldstorage" ] = post
498498 # restore wsgi.input incase that is needed
499- environ ['wsgi.input' ] = StringIO (environ ['s2repoze.body' ])
499+ # only of s2repoze.body is present
500+ if 's2repoze.body' in environ :
501+ environ ['wsgi.input' ] = StringIO (environ ['s2repoze.body' ])
500502 return {}
501503 else :
502504 logger .info ("[sp.identify] --- SAMLResponse ---" )
Original file line number Diff line number Diff line change 2424from saml2 .samlp import STATUS_UNKNOWN_ATTR_PROFILE
2525from saml2 .samlp import STATUS_UNKNOWN_PRINCIPAL
2626from saml2 .samlp import STATUS_UNSUPPORTED_BINDING
27+ from saml2 .samlp import STATUS_RESPONDER
2728
2829import xmldsig as ds
2930import xmlenc as xenc
@@ -158,6 +159,8 @@ class StatusUnknownPrincipal(StatusError):
158159class StatusUnsupportedBinding (StatusError ):
159160 pass
160161
162+ class StatusResponder (StatusError ):
163+ pass
161164
162165STATUSCODE2EXCEPTION = {
163166 STATUS_VERSION_MISMATCH : StatusVersionMismatch ,
@@ -180,6 +183,7 @@ class StatusUnsupportedBinding(StatusError):
180183 STATUS_UNKNOWN_ATTR_PROFILE : StatusUnknownAttrProfile ,
181184 STATUS_UNKNOWN_PRINCIPAL : StatusUnknownPrincipal ,
182185 STATUS_UNSUPPORTED_BINDING : StatusUnsupportedBinding ,
186+ STATUS_RESPONDER : StatusResponder ,
183187}
184188# ---------------------------------------------------------------------------
185189
You can’t perform that action at this time.
0 commit comments