Skip to content

Specify and prototype a secure Android account authentication contract #88

Open

Description

@LunaStev

Roadmap: #76

Problem

Current login uses TOTP, Turnstile, and an HttpOnly wave_session cookie. The app needs an explicit account-session design before adding authenticated screens.

Scope

Produce a narrowly scoped protocol decision and isolated test prototype for app sign-in, session expiration, and logout. Compare reusing the browser session with an explicit browser-to-app authorization exchange; choose the design appropriate to #77. This is not a request to replace current website authentication.

Done

  • Map trust boundaries, challenge verification, session issuance/storage, cancellation, expiration, revocation, and logout.
  • If a return exchange is selected, specify short-lived single-use codes bound to the initiating app request; keep reusable credentials out of redirect URLs.
  • Demonstrate rejection of replay, wrong destination/request binding, and stale callbacks with automated synthetic cases.
  • Explain the cookie/browser or native-credential boundary without weakening Turnstile or existing origin checks.
  • Record the approved wire contract and split production server/client integration into follow-up issues.

Start: internal/web/handler/auth.go, internal/session/, and internal/auth/turnstile.go. No real credentials or production login experiments.

Prerequisites: #77.

Activity

  1. added
    enhancement
    help wanted
    security
    android
    difficulty: expert
    on Sep 24, 2026
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

    androiddifficulty: expertenhancementhelp wantedsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions