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() 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(),