Skip to content

Commit 6badb32

Browse files
committed
Fix example to correctly iterate certs with names
Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 204b582 commit 6badb32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/idp2/idp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def redirect(self):
424424
issuer = _req.issuer.text
425425
_certs = IDP.metadata.certs(issuer, "any", "signing")
426426
verified_ok = False
427-
for cert in _certs:
427+
for cert_name, cert in _certs:
428428
if verify_redirect_signature(saml_msg, IDP.sec.sec_backend, cert):
429429
verified_ok = True
430430
break

0 commit comments

Comments
 (0)