|
10 | 10 | from six.moves.http_cookies import SimpleCookie
|
11 | 11 | from saml2.time_util import utc_now
|
12 | 12 | from saml2 import class_name, SAMLError
|
13 |
| -from saml2.pack import http_form_post_message |
14 | 13 | from saml2.pack import http_post_message
|
15 | 14 | from saml2.pack import make_soap_enveloped_saml_thingy
|
16 |
| -from saml2.pack import http_redirect_message |
17 | 15 |
|
18 | 16 | import logging
|
19 | 17 |
|
@@ -254,41 +252,6 @@ def send(self, url, method="GET", **kwargs):
|
254 | 252 |
|
255 | 253 | return r
|
256 | 254 |
|
257 |
| - @staticmethod |
258 |
| - def use_http_post(message, destination, relay_state, |
259 |
| - typ="SAMLRequest"): |
260 |
| - """ |
261 |
| - Return a urlencoded message that should be POSTed to the recipient. |
262 |
| -
|
263 |
| - :param message: The response |
264 |
| - :param destination: Where the response should be sent |
265 |
| - :param relay_state: The relay_state received in the request |
266 |
| - :param typ: Whether a Request, Response or Artifact |
267 |
| - :return: dictionary |
268 |
| - """ |
269 |
| - if not isinstance(message, six.string_types): |
270 |
| - message = "%s" % (message,) |
271 |
| - |
272 |
| - return http_post_message(message, relay_state, typ) |
273 |
| - |
274 |
| - @staticmethod |
275 |
| - def use_http_form_post(message, destination, relay_state, |
276 |
| - typ="SAMLRequest"): |
277 |
| - """ |
278 |
| - Return a form that will automagically execute and POST the message |
279 |
| - to the recipient. |
280 |
| -
|
281 |
| - :param message: |
282 |
| - :param destination: |
283 |
| - :param relay_state: |
284 |
| - :param typ: Whether a Request, Response or Artifact |
285 |
| - :return: dictionary |
286 |
| - """ |
287 |
| - if not isinstance(message, six.string_types): |
288 |
| - message = "%s" % (message,) |
289 |
| - |
290 |
| - return http_form_post_message(message, destination, relay_state, typ) |
291 |
| - |
292 | 255 | @staticmethod
|
293 | 256 | def use_http_artifact(message, destination="", relay_state=""):
|
294 | 257 | if relay_state:
|
|
0 commit comments