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>
32 lines
1.3 KiB
Plaintext
32 lines
1.3 KiB
Plaintext
# Template for /etc/products/rithub-oauth.env on railyard-box.
|
|
# Root-only (chown root:deploy, chmod 640 -- same convention as
|
|
# /etc/products/scribase.env, /etc/products/toolgate.env). Never commit
|
|
# a filled-in copy of this file anywhere.
|
|
#
|
|
# Created once by the owner with real values, then:
|
|
# sudo bash /srv/railyard-gitea/scripts/add-rithub-oauth-sources.sh
|
|
# adds whichever sources have both KEY and SECRET set, and is safe to
|
|
# re-run (skips sources that already exist).
|
|
#
|
|
# Owner steps + exact callback URLs/field values for each provider are
|
|
# in plans/railyard.md (search "rithub-oauth.env").
|
|
|
|
RITHUB_GITHUB_CLIENT_ID=
|
|
RITHUB_GITHUB_CLIENT_SECRET=
|
|
|
|
RITHUB_GOOGLE_CLIENT_ID=
|
|
RITHUB_GOOGLE_CLIENT_SECRET=
|
|
|
|
# Apple: RITHUB_APPLE_SERVICES_ID is the Services ID identifier
|
|
# (com.rithub.signin, or similar), not the Apple ID/team account.
|
|
# APPLE_TEAM_ID is the 10-character Developer Team ID (shared with any
|
|
# other Apple product secrets already on this box, if present).
|
|
# RITHUB_APPLE_KEY_ID is the Key ID shown next to the Sign in with Apple
|
|
# key when it was generated. RITHUB_APPLE_P8_PATH is a root-only path to
|
|
# the downloaded .p8 private key file (e.g. /etc/products/rithub-apple-signin.p8,
|
|
# chmod 600, chown root:root) -- Apple only lets you download it once.
|
|
RITHUB_APPLE_SERVICES_ID=
|
|
APPLE_TEAM_ID=
|
|
RITHUB_APPLE_KEY_ID=
|
|
RITHUB_APPLE_P8_PATH=
|