1 Commits

Author SHA1 Message Date
765a46c6c2 feat(rithub): visible Sign up/Sign in header CTAs + GitHub/Google/Apple OAuth wiring
Owner complaint: "rithub still has no google github apple auth and create
account options" -- the header only showed an icon-only Register control
(no visible text), so a first-time visitor had no obvious way to create
an account.

- head_navbar.tmpl / theme-rithub.css: the signed-out Register/Sign In
  controls now show real "Sign up"/"Sign in" text next to their icons
  (filled accent pill for Sign up, plain icon+text for Sign in), as an
  explicit exception to the icon-only nav chrome rule. Dropped the
  mismatched localized aria-label in favor of matching English text/title
  (the visible text is now the accessible name).
- Login ("Register now.") and sign-up ("Sign in now!") cross-links were
  already present and styled bold -- verified live, left as-is.
- docker-compose.yml: [oauth2_client] ENABLE_AUTO_REGISTRATION=true,
  ACCOUNT_LINKING=auto, so a first OAuth login creates/links the account
  directly, no second form.
- New apps/gitea/scripts/add-rithub-oauth-sources.sh: runs on
  railyard-box (no SSH hop), reads /etc/products/rithub-oauth.env
  (root-only, owner-filled) and calls `gitea admin auth add-oauth` for
  GitHub/Google/Apple (Apple's ES256 client-secret JWT minted from the
  .p8 key via python3+PyJWT, already present on the box). Safe to re-run;
  skips sources that already exist or have no credentials. Verified live
  as a no-op with an empty env file.
- rithub-oauth.env.example documents the exact env keys; a real (empty)
  copy was created at /etc/products/rithub-oauth.env on railyard-box for
  the owner to fill in.
- Kept the existing Mac-side add-oauth-sources.sh working (cross-
  referenced, not replaced).

Deployed to railyard-box (apps/gitea only, backed up custom/+app.ini/
compose first). Verified live: header shows Sign up/Sign in text
(desktop + mobile), real signup via a mail.tm disposable address +
captcha succeeded end to end (account created, welcomed, deleted after).
No provider enabled yet -- OAuth app creation in each provider console
is an owner-only step, documented in plans/railyard.md.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-18 02:06:00 +03:00