feat(auth): add support for user-based auth, public-api-server - #902
Open
rektdeckard wants to merge 16 commits into
Open
feat(auth): add support for user-based auth, public-api-server#902rektdeckard wants to merge 16 commits into
rektdeckard wants to merge 16 commits into
Conversation
rektdeckard
force-pushed
the
tobiasfried/devx-577-implement-dual-mode-auth-routing-in-the-cli
branch
2 times, most recently
from
August 19, 2026 00:03
609876b to
b5c94d0
Compare
Topherhindman
requested review from
Topherhindman
and removed request for
Topherhindman
August 27, 2026 23:23
rektdeckard
force-pushed
the
tobiasfried/devx-577-implement-dual-mode-auth-routing-in-the-cli
branch
from
September 11, 2026 00:23
b5c94d0 to
7d0af3e
Compare
rektdeckard
marked this pull request as ready for review
September 11, 2026 16:44
rektdeckard
force-pushed
the
tobiasfried/devx-577-implement-dual-mode-auth-routing-in-the-cli
branch
from
September 11, 2026 17:21
c3263cc to
008d475
Compare
Topherhindman
left a comment
Contributor
There was a problem hiding this comment.
overall i think this is v good. couple of preguntas
Contributor
There was a problem hiding this comment.
can we add some tests for this file?
rektdeckard
force-pushed
the
tobiasfried/devx-577-implement-dual-mode-auth-routing-in-the-cli
branch
from
September 12, 2026 05:07
db70fa5 to
877cf48
Compare
…implement-dual-mode-auth-routing-in-the-cli
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
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.lk workspace,lk user,lk simulationcommands.--project <my-project>flag--legacy-auth)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:go generate -tags oapigen ./pkg/public/...Usage
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:
lk project list --experimental-authThe 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, prod Public API Server will return "unimplemented" for all commands.