diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2022-01-05 22:57:47 +0200 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2022-01-05 22:57:47 +0200 |
commit | 6badb32d212257bd83ffcc816f9b625f68281b47 (patch) | |
tree | b91d2498fe87130b9413f18a0784b343e71dbd33 | |
parent | 204b58264b170656af4645bfd4e10a88490d36d3 (diff) | |
download | pysaml2-6badb32d212257bd83ffcc816f9b625f68281b47.tar.gz |
Fix example to correctly iterate certs with names
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rwxr-xr-x | example/idp2/idp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/idp2/idp.py b/example/idp2/idp.py index 7b8b9b9f..15d72c90 100755 --- a/example/idp2/idp.py +++ b/example/idp2/idp.py @@ -424,7 +424,7 @@ class SSO(Service): issuer = _req.issuer.text _certs = IDP.metadata.certs(issuer, "any", "signing") verified_ok = False - for cert in _certs: + for cert_name, cert in _certs: if verify_redirect_signature(saml_msg, IDP.sec.sec_backend, cert): verified_ok = True break |