Skip to content

Conversation

jprochazk
Copy link
Member

@jprochazk jprochazk commented Jul 23, 2025

Adds the ability to authenticate to Redap using the CLI.

Adds rerun auth login, which implements a login flow based on the OAuth 2.0 Authentication Code flow.

Login flow

  1. Run rerun auth login in your terminal, which opens a link in the default browser
$ rerun auth login
⠙ Waiting for browser...
  1. User logs in using their browser, which sends them to our login callback

  2. The CLI receives credentials from the frontend and stores them locally

⠙ Verifying login...
Success! You are now logged in as [email protected]
Rerun will automatically use the credentials stored on your machine.

There are a few options to ✨ customize the experience:

  • --no-open-browser to print a link in the terminal instead of directly opening it in the default browser
  • --force to run the login flow even in case valid credentials already exist on the user's machine
  • --login-url to change which login page will be opened (useful for testing against login page frontend running on localhost)

To use the token, you can retrieve it using rerun auth token:

REDAP_TOKEN=$(rerun auth token)

NOTE: While testing, use --login-url=https://landing-git-jan-login-page-rerun.vercel.app/login, until the landing PR is merged.

@jprochazk jprochazk added exclude from changelog PRs with this won't show up in CHANGELOG.md CLI Related to the Rerun CLI labels Jul 23, 2025
Copy link

github-actions bot commented Jul 23, 2025

Latest documentation preview deployed successfully.

Result Commit Link
9daa0a5 https://landing-qh95pukkr-rerun.vercel.app/docs

Note: This comment is updated whenever you push a commit.

Copy link

github-actions bot commented Jul 23, 2025

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link Manifest
d82e6e0 https://rerun.io/viewer/pr/10744 +nightly +main

Note: This comment is updated whenever you push a commit.

@jprochazk
Copy link
Member Author

@rerun-bot full-check

Copy link

Started a full build: https://github.com/rerun-io/rerun/actions/runs/16906562004

@jprochazk jprochazk marked this pull request as ready for review August 12, 2025 11:11
@andrea-reale andrea-reale self-requested a review August 12, 2025 14:59
Copy link
Contributor

@andrea-reale andrea-reale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Should we document more the auth commands?

For someone without context it's not necessarily obvious what they are for, I guess.

@jprochazk jprochazk merged commit 41287c7 into main Aug 12, 2025
41 checks passed
@jprochazk jprochazk deleted the jan/rerun-login branch August 12, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Related to the Rerun CLI exclude from changelog PRs with this won't show up in CHANGELOG.md
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants