diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-11-18 23:49:14 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-11-23 14:58:13 +0200 |
commit | e30702acafd36849c534e52c4238e1f20ffbfe3e (patch) | |
tree | 25a7accff7d76049f450bdafe09b138b5ba5384b /src/saml2/entity.py | |
parent | bb7669369ac6c4412a580863b7e86ee7166c7c81 (diff) | |
download | pysaml2-e30702acafd36849c534e52c4238e1f20ffbfe3e.tar.gz |
Remove unneeded intermediate static methods
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'src/saml2/entity.py')
-rw-r--r-- | src/saml2/entity.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/saml2/entity.py b/src/saml2/entity.py index f9f2eec1..8b472dec 100644 --- a/src/saml2/entity.py +++ b/src/saml2/entity.py @@ -72,6 +72,7 @@ from saml2.sigver import pre_encrypt_assertion from saml2.sigver import signed_instance_factory from saml2.virtual_org import VirtualOrg from saml2.pack import http_redirect_message +from saml2.pack import http_form_post_message import saml2.xmldsig as ds @@ -241,13 +242,8 @@ class Entity(HTTPBase): if binding == BINDING_HTTP_POST: logger.info("HTTP POST") - # if self.entity_type == 'sp': - # info = self.use_http_post(msg_str, destination, relay_state, - # typ) - # info["url"] = destination - # info["method"] = "POST" - # else: - info = self.use_http_form_post(msg_str, destination, relay_state, typ) + info = http_form_post_message(msg_str, destination, relay_state, typ) + (msg_str, destination, relay_state, typ) info["url"] = destination info["method"] = "POST" elif binding == BINDING_HTTP_REDIRECT: |