logdna / logdna-cli

The LogDNA CLI allows you to signup for a new account and tail your server logs right from the command line.
https://logdna.com
MIT License
27 stars 21 forks source link

SSO login has broken #62

Open marina-gonzalezalvarez opened 1 year ago

marina-gonzalezalvarez commented 1 year ago

Hi, up until recently (let's say ~2 months ago), I was able to use the SSO login to use the logdna-cli (the only way my organization allows the login). Recently, however, this seems to not be possible anymore and I am getting the following error:

$ logdna ssologin
To sign in via SSO, use a web browser to open the page https://logdna.com/sso/faaf2865
Error: ssologin is disabled, use login or create conf file manually
Error: ssologin is disabled, use login or create conf file manually
Error: ssologin is disabled, use login or create conf file manually
Error: ssologin is disabled, use login or create conf file manually
Error: ssologin is disabled, use login or create conf file manually
^C

I have also tried to generate the conf file manually in the mean time (until a fix for this is incorporated):

VERSION_CHECK_URL = https://repo.logdna.com/linux/version
UPDATE_CHECK_URL = https://repo.logdna.com/linux/logdna.gz
UPDATE_CHECK_INTERVAL = 86400000
SSO_URL = https://logdna.com/sso/
SSO_LONG_PATH = /ext/cli-sso/
SSO_POLL_INTERVAL = 5000
DEFAULT_CONF_FILE = /home/<username>/.logdna.conf
LOGDNA_APIHOST = api.logdna.com
LOGDNA_TAILHOST = tail.logdna.com
LOGDNA_APPHOST = 
LOGDNA_APISSL = true
SUPPORTS_COLORS = true
updatecheck = 
email = 
account = 
key = 
token = 
servicekey = 
last_timestamp = 

However, I don't know how to retrieve the appropriate token value. Is there an easy way to obtain my personal token for completing the corresponding field in the snippet enclosed above?

Thanks a lot in advance

dolph commented 1 year ago

This is an issue for me authenticating against LogDNA in IBM Cloud with 2.0.0. The SSO URL opens correctly and declares me authenticated, but the CLI is immediately spinning with these errors that seem to continue forever.

$ logdna ssologin
To sign in via SSO, use a web browser to open the page https://app.us-south.logging.cloud.ibm.com/ext/cli-sso/...
Error: ssologin is disabled, use login or create conf file manually
Error: ssologin is disabled, use login or create conf file manually
Error: ssologin is disabled, use login or create conf file manually
...