Skip to content

Make sign out everywhere an explicit CLI action - #81

Merged
barfle merged 2 commits into
codex/native-pkce-loginfrom
codex/gateway-cli-logout-scope
Nov 8, 2026
Merged

barfle merged 2 commits into
codex/native-pkce-loginfrom
codex/gateway-cli-logout-scope

Conversation

@barfle

@barfle barfle commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The CLI still described normal logout as account-wide and offered no way to select the backend’s explicit account-wide action. Normal dataplicity auth logout now revokes only its captured sign-in. dataplicity auth logout --everywhere explicitly uses /api/auth/logout/everywhere/ and reports a failed command if account-wide revocation cannot be confirmed, while honestly reporting that local credentials were cleared.

Both actions retain the existing pre-I/O atomic credential detachment, original credential snapshot, fixed recipient, access-to-captured-refresh fallback only after an explicit authentication rejection, and no renewal, cookies, redirects, ambient authentication or ambiguous retry. Organisation API keys are removed locally and cannot revoke a Core account. JSON output adds the requested scope; ordinary successful logout retains its existing detail.

Validation: 325 complete unit tests / 74 subtests passed, with the existing configured coverage at 100% of 1,585 statements (CLI entry point and remote_access exclusions remain unchanged). All 326 existing staging security contracts passed. Both actions use actual loopback HTTP tests for endpoint selection, captured refresh fallback, Set-Cookie exclusion and replacement-login survival. The private wheel builds, installs outside the checkout, matches the committed runtime files and passes six installed command checks. Final source e40b93d also passed the complete 325-test suite with CI-style terminal colour enabled. Full CI 42455753414 passed all ten jobs, including Python 3.11/3.12, Windows unit tests, three-platform command/transport checks, Windows MSI, macOS PKG and Linux package checks. The initial CI failure was limited to ANSI styling in the new help assertion; normalization preserves its command and scope assertions.

Private qualification branch only, targeting codex/native-pkce-login. No main, public package/feed, installer, Homebrew, store or production release. Paired staging sign-in/logout acceptance still requires the final combined backend.

@barfle
barfle marked this pull request as ready for review November 8, 2026 06:45
@barfle
barfle requested a review from a team as a code owner November 8, 2026 06:45
@barfle
barfle merged commit a75d604 into codex/native-pkce-login Nov 8, 2026
10 checks passed
@barfle
barfle deleted the codex/gateway-cli-logout-scope branch November 8, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant