Skip to content

Conversation

@olliekm
Copy link
Collaborator

@olliekm olliekm commented Nov 18, 2025

Implemented flow for authenticating users in CLI:

  • Long lived token is read from config.json on CLI start.
  • Stores token in AppContext.
  • Added additonal confirmation to mist auth login.
  • mist auth login now opens browser and waits for user to input token, we call API (mocked right now) for long lived token and store it in AppContext and update config.json.
  • AppContext is binded to Kong to make accessible in all commands for future API calls.

Notes:

  • Token is displayed to user when attempting to log in, maybe change this in the future for security reasons.
  • authURL currently is placeholder, needs to be updated to login site.
  • getLongLivedToken needs to call auth API.

@blobcode
Copy link
Collaborator

@WarrickT take a look if you get a chance - otherwise lgtm

@blobcode blobcode merged commit 7b2f964 into main Jan 6, 2026
1 check passed
@blobcode blobcode deleted the oliver_cli_auth branch January 6, 2026 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants