Skip to content

Web: securely switch between saved GitHub accounts #2272

Closed

Description

@integry

Follow-up to #2269 and desktop PR #2271; user explicitly requests account switching on web too where practical. Target 1950-epic-cross-platform-dsk (#1970), not main. Keep this independent of the active desktop/logout integration in #2271 and #2270: avoid editing desktop transport or duplicating those changes. Inspect existing browser auth, hosted tunnel auth, cookies and CSRF before implementation. Implement a server-owned collection of separately authorized GitHub sessions with a clear account picker showing actual GitHub username/avatar and add/switch/sign-out actions. Never place GitHub/access/refresh tokens in browser-readable storage, weaken CSRF or authorization, or treat a client-provided account ID as authority. Each saved identity must be explicitly authenticated and confirmed. Preserve existing single-account sessions through migration. Logout/removal affects the selected saved account only; signing out must remain signed out after reload. Switching must invalidate account-specific caches, sockets and late responses, including notifications. Choose and document cross-tab semantics explicitly: if using one active browser session, synchronize/invalidate other tabs rather than claiming simultaneous isolated users per tab. Account isolation across simultaneous desktop windows is NOT in this task. Reuse shared account presentation where possible without blocking or modifying active desktop integration. Require integration tests with two users on the same instance, wrong-identity approval, unauthorized switching, switch/logout races, delayed HTTP/socket responses, reload, expired sessions, CSRF and cross-tab behavior. Add deployment/compatibility notes. If this needs a materially broader authentication redesign, report a concrete scoped proposal before implementing that redesign. No live deployment, user credential resets, Windows work, or removal of existing login flows. PR must contain Closes ; link #2269 and #2271. Report tests and limitations honestly.

Activity

  1. propr-dev commented on Sep 10, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6-astra model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6-astra
    • Branch: 2272/gpt-6-astra-web-securely-switch-betwe-20260910-2051-qr1
    • Base Branch: 1950-epic-cross-platform-dsk
    • Worktree: issue-2272-20260910-2051-gpt-6-astra-qr1

    🔍 Track Task Execution

  2. added a commit that references this issue on Sep 10, 2026
  3. integry commented on Sep 10, 2026

    @integry
    OwnerAuthor

    User decision: desktop first. Defer web application implementation; keep the current architecture proposal as a separate follow-up only. Do not start the broader browser-session redesign or deploy anything. If a proposal PR is produced, make clear that it does not implement account switching and must not close #2272. Desktop delivery continues independently in #2271/#2270.

  4. integry commented on Sep 28, 2026

    @integry
    OwnerAuthor

    Postponing for later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions