From e654affc93bab80d00fdecc10bf004607a49f3de Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Fri, 4 Apr 2025 11:03:50 +0200 Subject: [PATCH 1/2] fix: Check for, and use, non-case-specific shared-key token. --- src/sumo/wrapper/_auth_provider.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sumo/wrapper/_auth_provider.py b/src/sumo/wrapper/_auth_provider.py index 33616d0..f760b56 100644 --- a/src/sumo/wrapper/_auth_provider.py +++ b/src/sumo/wrapper/_auth_provider.py @@ -443,6 +443,9 @@ def get_auth_provider( if os.path.exists(get_token_path(resource_id, ".sharedkey", case_uuid)): return AuthProviderSumoToken(resource_id, case_uuid) # ELSE + if os.path.exists(get_token_path(resource_id, ".sharedkey")): + return AuthProviderSumoToken(resource_id) + # ELSE if os.path.exists(get_token_path(resource_id, ".token")): auth_silent = AuthProviderSilent(client_id, authority, resource_id) token = auth_silent.get_token() From 1fee5e01eb500072bab6d01b6c8e1928a0b63512 Mon Sep 17 00:00:00 2001 From: Raymond Wiker Date: Fri, 4 Apr 2025 11:04:30 +0200 Subject: [PATCH 2/2] fix: enabvle interactive login by default. --- src/sumo/wrapper/sumo_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sumo/wrapper/sumo_client.py b/src/sumo/wrapper/sumo_client.py index ba0ce00..09011cf 100644 --- a/src/sumo/wrapper/sumo_client.py +++ b/src/sumo/wrapper/sumo_client.py @@ -33,7 +33,7 @@ def __init__( self, env: str, token: Optional[str] = None, - interactive: bool = False, + interactive: bool = True, devicecode: bool = False, verbosity: str = "CRITICAL", retry_strategy=RetryStrategy(),