Skip to content

Commit

Permalink
Removes redundant environment variable from MSSP backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHammond13 committed Jul 8, 2024
1 parent 12f40b6 commit 252a535
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions falcon_toolkit/common/auth_backends/public_mssp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
user which child CID to authenticate against.
"""

import os

from typing import Dict, Optional

import click
Expand Down Expand Up @@ -104,14 +102,7 @@ def dump_config(self) -> Dict[str, object]:

def authenticate(self, ctx: click.Context) -> Client:
"""Log the Toolkit into Falcon using the settings and keys configured at instance setup."""

# We allow loading of an MSSP CID from the environment
chosen_cid_str = os.environ.get("FALCON_TOOLKIT_MSSP_CHILD_CID")

# ...but the one passed on the CLI always takes precedence
chosen_cid_str_ctx = ctx.obj["cid"]
if chosen_cid_str_ctx:
chosen_cid_str = chosen_cid_str_ctx
chosen_cid_str = ctx.obj["cid"]

parent_client = Client(
client_id=self.client_id,
Expand Down

0 comments on commit 252a535

Please sign in to comment.