diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-11-18 23:30:40 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2020-11-23 14:58:13 +0200 |
commit | bb7669369ac6c4412a580863b7e86ee7166c7c81 (patch) | |
tree | 0057a817506a018de33751b39ba66e79440b4a94 /tests | |
parent | ec3f5985c9548d4d186c98a0d5c95f83ba7e1cd8 (diff) | |
download | pysaml2-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.py | 14 |
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 |