Skip to content

Commit 0111b9b

Browse files
author
Roland Hedberg
committed
Rolled back on form_post vs post
1 parent ad8e8cb commit 0111b9b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/saml2/entity.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -215,16 +215,16 @@ def apply_binding(self, binding, msg_str, destination="", relay_state="",
215215

216216
if binding == BINDING_HTTP_POST:
217217
logger.info("HTTP POST")
218-
if self.entity_type == 'sp':
219-
info = self.use_http_post(msg_str, destination, relay_state,
220-
typ)
221-
info["url"] = destination
222-
info["method"] = "POST"
223-
else:
224-
info = self.use_http_form_post(msg_str, destination,
225-
relay_state, typ)
226-
info["url"] = destination
227-
info["method"] = "GET"
218+
# if self.entity_type == 'sp':
219+
# info = self.use_http_post(msg_str, destination, relay_state,
220+
# typ)
221+
# info["url"] = destination
222+
# info["method"] = "POST"
223+
# else:
224+
info = self.use_http_form_post(msg_str, destination,
225+
relay_state, typ)
226+
info["url"] = destination
227+
info["method"] = "GET"
228228
elif binding == BINDING_HTTP_REDIRECT:
229229
logger.info("HTTP REDIRECT")
230230
info = self.use_http_get(msg_str, destination, relay_state, typ,

0 commit comments

Comments
 (0)