summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Kanakarakis <ivan.kanak@gmail.com>2020-11-18 23:30:40 +0200
committerIvan Kanakarakis <ivan.kanak@gmail.com>2020-11-23 14:58:13 +0200
commitbb7669369ac6c4412a580863b7e86ee7166c7c81 (patch)
tree0057a817506a018de33751b39ba66e79440b4a94 /tests
parentec3f5985c9548d4d186c98a0d5c95f83ba7e1cd8 (diff)
downloadpysaml2-bb7669369ac6c4412a580863b7e86ee7166c7c81.tar.gz
Create the signer along with the sigalg allowance check
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_70_redirect_signing.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/test_70_redirect_signing.py b/tests/test_70_redirect_signing.py
index a079d6cb..5286d4c6 100644
--- a/tests/test_70_redirect_signing.py
+++ b/tests/test_70_redirect_signing.py
@@ -30,11 +30,15 @@ def test():
destination = srvs[0]["location"]
req_id, req = sp.create_authn_request(destination, id="id1")
- signer = sp.sec.sec_backend.get_signer(SIG_RSA_SHA1)
-
- info = http_redirect_message(req, destination, relay_state="RS",
- typ="SAMLRequest", sigalg=SIG_RSA_SHA1,
- signer=signer)
+ info = http_redirect_message(
+ req,
+ destination,
+ relay_state="RS",
+ typ="SAMLRequest",
+ sigalg=SIG_RSA_SHA1,
+ sign=True,
+ backend=sp.sec.sec_backend,
+ )
verified_ok = False