Skip to content

Commit

Permalink
Load should validate auth from environ, default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinspace committed Feb 12, 2025
1 parent 11a141b commit 43e4d18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bignbit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
EDL_USER_TOKEN = {}
HARMONY_CLIENT: Client or None = None

HARMONY_SHOULD_VALIDATE_AUTH = os.environ.get('HARMONY_SHOULD_VALIDATE_AUTH', default='False').upper() == 'TRUE'


def get_edl_creds() -> (str, str):
"""
Expand Down Expand Up @@ -278,7 +280,7 @@ def get_harmony_client(environment_str: str) -> harmony.Client:
HARMONY_CLIENT = Client(
env=harmony_environ,
auth=get_edl_creds(),
should_validate_auth=False
should_validate_auth=HARMONY_SHOULD_VALIDATE_AUTH
)

return HARMONY_CLIENT
Expand Down

0 comments on commit 43e4d18

Please sign in to comment.