Skip to content

Dicitionary Key Check #1

Description

@jdpete1595

In the authentication.py file If there exists a key that is not in the policy conditions dict or authentication policies dict an error could be thrown. These checks should avoid errors. Great work on putting these flow chart visualizations together.

Generate First Rule Nodes

for policy_id, app_ids in apps_by_policy.items():
    if policy_id not in authentication_policies:
        continue  # Skip this iteration if policy_id is not in authentication_policies
    policy_struct = authentication_policies[policy_id]
    print(policy_struct['Policy'].name)
    if policy_id not in policy_conditions:
        continue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions