Skip to content

Studio sign-in and recovery: OIDC popup, public status, and banners #1845

Closed

Description

@samuv

Parent: #1736. Design review: #1779.
Design baseline: 2026-09-24.

Outcome

Signing in or recovering a session no longer discards the open workspace, and users can distinguish a daemon outage from a sign-in problem.

Scope

  • Open OIDC login synchronously from a user action in a popup; complete it through a same-origin callback page that posts a constrained result to its opener and closes. Keep the current callback URL, sealed cookies, CSRF, origin checks, and account separation.
  • Expose only minimal connection/auth-recovery facts to anonymous browsers. Keep the detailed /api/v1/runtime response, deployment data, and capabilities authenticated. Use the public projection for offline and auth-recovery banners, with storage-health information shown only after authentication.
  • Show the email claim when available, retain the existing opaque account key, and never send the raw OIDC subject to the browser. Handle popup blocking, manual closure, expired sessions, and retries.

Acceptance

  • A successful sign-in preserves the current route and in-page draft; popup messages are accepted only from the same origin, and a failed/blocked popup leaves a recoverable path.
  • Anonymous status distinguishes BFF reachable, daemon unavailable, and sign-in required without exposing private runtime details; authenticated feature routes still reject anonymous requests.
  • BFF contract/security tests, browser flow coverage coordinated with Studio test coverage: Playwright journeys, apps/web unit gaps, CI job #1776, and task studio:check pass.

Delivery

Architectural candidate because the public status and auth flow alter a trust boundary. Classify and record the decision before implementation.

Parallel work: the minimal public-status contract, BFF auth/callback changes, and popup state can be planned and built alongside #1843 and #1844. Final banner placement and styling integrate with #1844's shell and #1843's tokens. Coordinate runtime-schema edits with #1846.

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

Metadata

Metadata

Assignees

Labels

WebUIenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions