Skip to content

Commit f3b362d

Browse files
committed
more update
1 parent 497e77d commit f3b362d

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎centml/cli/login.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313

1414
from centml.sdk import auth
15-
from centml.sdk.api import initialize_client_credentials_login
1615
from centml.sdk.config import settings
1716

1817

@@ -96,12 +95,6 @@ def login(token_file):
9695
if token_file:
9796
auth.store_centml_cred(token_file)
9897

99-
# Try client credentials flow first if SERVICE_ACCOUNT_ID and SERVICE_ACCOUNT_SECRET are set
100-
if initialize_client_credentials_login():
101-
click.echo("Authenticating with client credentials...")
102-
click.echo("✅ Login successful with client credentials")
103-
return
104-
10598
cred = auth.load_centml_cred()
10699
if cred is not None and auth.refresh_centml_token(cred.get("refresh_token")):
107100
click.echo("Authenticating with stored credentials...\n")

0 commit comments

Comments
 (0)