Skip to content

Web session + CAS fallback, keyring storage, auth status and auth logout #36

Open

Description

@sultandevin

The path that works before the DTI registration resolves, plus local credential storage.

auth login --method auto falls back here when SIMASTER_CLIENT_ID is unset. Storage is the OS keyring, with a 0600 file fallback when no keyring is available.

auth status reports provider, username, scopes, expiry, and storage backend — never a token. auth logout deletes local state, opens browser logout when possible, and reports the public-client introspection/revocation limitation honestly.

Done when

  • The fallback completes with a maintainer's own account and is documented in docs/AUTH.md as explicitly lower assurance.
  • Both storage paths are tested and the file fallback is created 0600 on Unix.
  • auth status and auth logout match the CLI contract and leak no token, code, cookie, or verifier.

Activity

  1. added
    area:auth
    on Nov 10, 2026
  2. sultandevin commented on Nov 23, 2026

    @sultandevin
    CollaboratorAuthor

    Scope update: programmatic CAPTCHA solving for the user's own login is now in scope — the reverse of what this issue and the #52 evidence previously documented. Implemented in PR #60: offline classification of image challenges with a vendored ddddocr model (the old common_old.onnx uses a DynamicQuantizeLSTM the pure-Rust tract backend cannot run, so the f32 common.onnx is vendored instead), with audio challenges, model misses, and rejected answers still escalating to a human. A standalone CAPTCHA-solving service remains a non-goal. The OpenAPI evidence (captchasound-verification.yaml), docs/AUTH.md, and AGENTS.md non-goals are updated with the same wording.

  3. sultandevin commented on Nov 24, 2026

    @sultandevin
    CollaboratorAuthor

    Correction to my earlier scope note: the ddddocr model is not vendored in the repo. It is downloaded once on the first image challenge into the platform cache directory (~/.cache/simaster/common.onnx), verified against a pinned SHA-256, and reused offline; a failed fetch or checksum falls back to the human prompt. Nothing model-sized is committed, and the branch history was rewritten so the earlier 54 MB blob is gone. Everything else in the previous comment still holds.

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

    area:auth

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions