feat(auth): add support for user-based auth, public-api-server - #902
Draft
rektdeckard wants to merge 4 commits into
Draft
feat(auth): add support for user-based auth, public-api-server#902rektdeckard wants to merge 4 commits into
rektdeckard wants to merge 4 commits into
Conversation
rektdeckard
force-pushed
the
tobiasfried/devx-577-implement-dual-mode-auth-routing-in-the-cli
branch
from
August 18, 2026 23:56
a1833bc to
609876b
Compare
rektdeckard
force-pushed
the
tobiasfried/devx-577-implement-dual-mode-auth-routing-in-the-cli
branch
from
August 19, 2026 00:03
609876b to
b5c94d0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://linear.app/livekit/issue/DEVX-575/build-cli-poc-for-user-auth-and-list-projects
https://linear.app/livekit/issue/DEVX-577/implement-dual-mode-auth-routing-in-the-cli
public-api-serverrepo -- we will consume them as library/SDK when stable).lk cloud authflow for user sessions.lk project list,lk project get,lk project create,lk project update, andlk project deletecommands using the new client behind--experimental-authflag.--project <my-project>flag--legacy-auth)mageas the default build tool. CMake is still supported as a fallback.Architecture
The CLI config file now stores a list of authenticated User credentials, including name, session token, and a cache of their projects. This lives alongside the existing Project credentials, and either can be used interchangeably for supported commands. Once the Public API is complete, this will be the default authentication mode for all commands.
Commands that support user-based authentication are routed through the API client in
pkg/public. To run client codegen:mage generateUsage
A hidden global
--experimental-authflag gates all experimental API variants of commands. Unimplemented commands return an error. To authenticate using the new flow against staging:To run new versions of the commands:
The default API URL can be overridden with the
--experimental-api-urlflag when running the API server locally:lk project list --experimental-auth --experimental-api-url "http://localhost:8000"Note that at the moment, Public API Server will return "unimplemented" for all commands.