oficina / docs Public

WIP: stale comments; home/connect is first-party in the colophon

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev de26fd8d9fbc7b275b7399e15f69bf9aca8dfb41 parent 2f8e647
4 files changed, +13 −10
  • internal/docs/auth.go +2 −1
  • internal/docs/home_config.go +3 −2
  • internal/docs/signin_return.go +7 −7
  • internal/shipped/shipped.go +1 −0

CI passed — run details

diff --git a/internal/docs/auth.go b/internal/docs/auth.go
index 5fc609b..689eb69 100644
--- a/internal/docs/auth.go
+++ b/internal/docs/auth.go
@@ -552,7 +552,8 @@ func (h *handlers) signin(w http.ResponseWriter, r *http.Request) {
// signedOut is GET /signed-out, where Sign out lands: "You’re signed out",
// and a Sign in button (spec §9.2). With Home configured it is the same
-// page (home_routes.go), which is why it takes the path to sign in at.
+// page (connect's SignedOut, drawn by home_connect.go's render), which is
+// why it takes the path to sign in at.
func (h *handlers) signedOut(w http.ResponseWriter, r *http.Request) {
h.render.homeLink(w, r, "signedout", "", http.StatusOK)
}
diff --git a/internal/docs/home_config.go b/internal/docs/home_config.go
index 796a0fd..bf6b67b 100644
--- a/internal/docs/home_config.go
+++ b/internal/docs/home_config.go
@@ -100,8 +100,9 @@ var errDirectoryConfig = errors.New("docs: invalid $HOME_DIRECTORY_ORIGIN")
// links to, by Home's own originHost rules (home internal/home/origins.go):
// https, a lower-case DNS name of at least two labels, no IP address, no
// port, userinfo, path, query or fragment. Empty is allowed and means no
-// switcher. Docs reads it itself because it is not on home/connect, where
-// it would be connect.Credentials.Directory (spec §6.2); that move is R3.
+// switcher. Docs reads it itself rather than through
+// connect.Credentials.Directory (spec §6.2), as it reads the rest of its
+// Home configuration; moving the configuration onto connect is R3.
func validatedDirectory(origin string) (string, error) {
if origin == "" {
return "", nil
diff --git a/internal/docs/signin_return.go b/internal/docs/signin_return.go
index 23ef16e..c4d6427 100644
--- a/internal/docs/signin_return.go
+++ b/internal/docs/signin_return.go
@@ -5,12 +5,12 @@ package docs
// GET /signin goes straight back, and signing out lands on a page that
// says so.
//
-// With Home configured, the return path already rode the Home hand-off
-// (home_routes.go's signin remembers it in __Host-oficina-docs-home-
-// return). What did not honour it was the local email link: rastrillo's
-// auth.Verify always lands on its fixed SignedInPath, so the value cannot
-// ride the emailed link and lives in that same sealed, 600-second cookie
-// instead, read at /auth/local/complete.
+// With Home configured, the return path rides the Home hand-off, and
+// home_connect.go's signin also remembers it in Docs' own
+// __Host-oficina-docs-home-return. What would not honour it is the local
+// email link: rastrillo's auth.Verify always lands on its fixed
+// SignedInPath, so the value cannot ride the emailed link and lives in
+// that sealed, 600-second cookie instead, read at /auth/local/complete.
//
// Standalone Docs (no Home) had nothing: rastrillo's RequireSession drops
// the path (its refuseSession redirects to a bare /signin) and its
@@ -119,7 +119,7 @@ func (h *handlers) standaloneSignin(n *returnMemory) http.HandlerFunc {
// /signin remembers the list: a page remembered by an earlier,
// abandoned attempt must not win over the one being made now. The
// email flow's own outcomes (?sent, ?err) leave it alone. Home's
- // /signin does the same (home_routes.go).
+ // /signin does the same (home_connect.go).
if !signinOutcome(r) {
path, ok := requestedReturn(r)
if !ok {
diff --git a/internal/shipped/shipped.go b/internal/shipped/shipped.go
index c0ec21a..58585a2 100644
--- a/internal/shipped/shipped.go
+++ b/internal/shipped/shipped.go
@@ -57,6 +57,7 @@ import (
// internal/docs links as nativeauth.
var FirstParty = map[string]bool{
"amadan.net/oficina/estilo.git": true,
+ "amadan.net/oficina/home/connect": true,
"amadan.net/oficina/home/dashboard": true,
"amadan.net/oficina/home/handoff": true,
"amadan.net/oficina/home/roster": true,