Skip to content

Commit

Permalink
fixes duo-labs#918
Browse files Browse the repository at this point in the history
set saml_provider_arn even when no SAML providers present to avoid error
  • Loading branch information
jtyers committed Aug 26, 2022
1 parent 52fb569 commit 1ef7065
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/weboftrust.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def get_iam_trusts(account, nodes, connections, connections_to_get):
# Validate that the federated principal and the SAML provider is coming from known accounts.
# WoT will show us the direction of that trust for further inspection.
# this enables cross_account_admin_sts (STS between accounts)
saml_provider_arn = ""
for saml in saml_providers:
if saml["Arn"] == federated_principal:
saml_provider_arn = saml["Arn"]
Expand Down

0 comments on commit 1ef7065

Please sign in to comment.