-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi,
we are trying to use the logsmith CLI with the --oneshot flag an ran into the following error:
[ERROR] MainThread auth_mode was neither key or sso.
even though our logsmith config does mention auth_mode: soo
dr-admin:
color: '#BA34EB'
team: myteam
region: eu-central-1
script: null
auth_mode: sso
These are the logs:
$ logsmith --login dr-admin --oneshot
2025-12-15 11:14:20,691 [INFO] MainThread start sso login dr-admin
2025-12-15 11:14:20,691 [INFO] MainThread cleanup credentials
2025-12-15 11:14:20,696 [INFO] MainThread initiate sso login
2025-12-15 11:14:20,696 [INFO] MainThread run command: aws sso login --sso-session sso
2025-12-15 11:14:20,696 [INFO] MainThread shell: /bin/zsh
2025-12-15 11:14:22,450 [INFO] MainThread --- shell output start ---
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open, open the following URL:
https://oidc.eu-central-1.amazonaws.com/authorize
Successfully logged into Start URL: https://ottosso.awsapps.com/start
2025-12-15 11:14:22,450 [INFO] MainThread --- shell output end ---
...
2025-12-15 11:14:22,456 [INFO] MainThread sso login success
2025-12-15 11:14:22,456 [INFO] MainThread handle support files
login successful
2025-12-15 11:14:22,456 [ERROR] MainThread auth_mode was neither key or sso.
The strange part is, that the login was "successful".
Logging in without the --oneshot flag is successful:
logsmith --login dr-admin
2025-12-15 11:33:05,604 [INFO] MainThread start sso login dr-admin
2025-12-15 11:33:05,604 [INFO] MainThread cleanup credentials
2025-12-15 11:33:05,608 [INFO] MainThread initiate sso login
2025-12-15 11:33:05,608 [INFO] MainThread run command: aws sso login --sso-session sso
2025-12-15 11:33:05,608 [INFO] MainThread shell: /bin/zsh
2025-12-15 11:33:07,571 [INFO] MainThread --- shell output start ---
Attempting to automatically open the SSO authorization page in your default browser.
If the browser does not open, open the following URL:
https://oidc.eu-central-1.amazonaws.com/authorize
Successfully logged into Start URL: https://ottosso.awsapps.com/start
2025-12-15 11:33:07,571 [INFO] MainThread --- shell output end ---
...
2025-12-15 11:33:07,578 [INFO] MainThread sso login success
2025-12-15 11:33:07,578 [INFO] MainThread handle support files
login successful
start timer for 28800
All help appreciated, thank you :)
Metadata
Metadata
Assignees
Labels
No labels