Repository navigation
feat(flow): sign in to Cloud from the terminal with the browser (openadapt login) - #2379
Merged
Merged
Conversation
Member
Author
Independent adversarial review: APPROVEFrom: Grok
Do not merge this yet. Public OpenAdapt merges wait on the packages-gate and the coordinator's order (KDF/#2375, then the Flow floor, then the rest). Coordinator inbox: this review is also recorded on openadapt-internal#211 (comment 7056202521). |
yunusarda-sudo
pushed a commit
to yunusarda-sudo/OpenAdapt
that referenced
this pull request
Nov 22, 2026
Raise the privacy extra's floor to openadapt-privacy[presidio]>=1.1.4, which has sanitization_config(); restore the dated v3.4.0 heading; note the Flow changes merged since the cut (OpenAdaptAI#2379, OpenAdaptAI#2392, OpenAdaptAI#2313, OpenAdaptAI#2369).
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.
openadapt loginneeded an ingest token pasted from Settings. With no token given or stored, it now signs in through the browser, the wayvercel login,fly auth loginandgh auth logindo. This is slice 1 of quickstart v2 (design: openadapt-internal#248).What it does
127.0.0.1:<random port>/callback. The listener serves only that path and keeps the first callback.https://app.openadapt.ai/login?redirect_to=…&code_challenge=…&state=…. It opens a browser only with--open./auth/loopbackpage asks them to approve this computer and redirects to the listener with a one-useoap_code.hosted.connectredeems the code with the verifier (newcode_verifierargument) and keeps its existing stage, validate, promote, confirm and rollback steps. The credential lands in the same keychain entry thatpushandreport-runread.No Cloud change is needed: OpenAdapt Desktop already uses this grant in production. openadapt-cloud#501 changes the approval page copy from "Connect OpenAdapt Desktop?" to "Connect this computer?".
Compatibility.
--token,OPENADAPT_INGEST_TOKENor a stored token keep the old path, sologinstill re-validates a stored token.--browserforces the browser and--no-browserforbids it. No secret appears in any URL the CLI builds.Files
packages/flow/openadapt_flow/browser_login.py: new. Loopback receiver,browser_login()and the CLI wiring.hosted.py:connect(code_verifier=...), validated against RFC 7636.__main__.py: a 3-line hook. The docstring is trimmed so the file stays within its line budget.CAPABILITIES.mdrow andllms-full.txt.Checks
tests/test_browser_login.py, 11 tests:/callback.test_hosted.py,test_import_layers.pyandtest_capabilities_map.py: 2,432 passed, 1 skipped. ruff, ruff format and mypy are clean on the new module, and the file-size ratchet passes.next devin mock mode, driven by an httpx "browser" with cookies, with the keychain in memory.Cancel ended with
Sign-in was not approved: The user cancelled this connection request., and nothing was stored.Not tested: a real sign-in on production app.openadapt.ai, which needs a person at a browser. Users get this with the next Flow release.