Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dicitionary Key Check #1

Open
jdpete1595 opened this issue May 25, 2023 · 0 comments
Open

Dicitionary Key Check #1

jdpete1595 opened this issue May 25, 2023 · 0 comments

Comments

@jdpete1595
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant