logdna / logdna/logdna-cli

SSO login has broken

Open
#62 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the logdna ssologin command and the supplied configuration, focusing on SSO_URL, SSO_LONG_PATH, and the token field. Reproduce the repeated disabled error and trace how the CLI obtains the token. Done means an organization using SSO can complete login without manually guessing the token.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
authentication, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.