diff --git a/pkg/appview/config.go b/pkg/appview/config.go
index e474033..ce5f992 100644
--- a/pkg/appview/config.go
+++ b/pkg/appview/config.go
@@ -251,6 +251,7 @@ func autoDetectBaseURL(httpAddr string) string {
// Auto-detect from HTTP addr
if httpAddr[0] == ':' {
// Just a port, assume localhost
+ // Use "127.0.0.1" per RFC 8252 (OAuth servers reject "localhost")
return fmt.Sprintf("http://127.0.0.1%s", httpAddr)
}
diff --git a/pkg/appview/templates/components/nav-brand.html b/pkg/appview/templates/components/nav-brand.html
new file mode 100644
index 0000000..c337202
--- /dev/null
+++ b/pkg/appview/templates/components/nav-brand.html
@@ -0,0 +1,5 @@
+{{ define "nav-brand" }}
+
+{{ end }}
diff --git a/pkg/appview/templates/components/nav-search.html b/pkg/appview/templates/components/nav-search.html
new file mode 100644
index 0000000..61f1d07
--- /dev/null
+++ b/pkg/appview/templates/components/nav-search.html
@@ -0,0 +1,7 @@
+{{ define "nav-search" }}
+
+
+
+{{ end }}
diff --git a/pkg/appview/templates/components/nav-theme-toggle.html b/pkg/appview/templates/components/nav-theme-toggle.html
new file mode 100644
index 0000000..64d47d6
--- /dev/null
+++ b/pkg/appview/templates/components/nav-theme-toggle.html
@@ -0,0 +1,3 @@
+{{ define "nav-theme-toggle" }}
+
+{{ end }}
diff --git a/pkg/appview/templates/components/nav-user.html b/pkg/appview/templates/components/nav-user.html
new file mode 100644
index 0000000..fda7423
--- /dev/null
+++ b/pkg/appview/templates/components/nav-user.html
@@ -0,0 +1,27 @@
+{{ define "nav-user" }}
+{{ if .User }}
+
+
+
+
+{{ else }}
+ Login
+{{ end }}
+{{ end }}
diff --git a/pkg/appview/templates/components/nav.html b/pkg/appview/templates/components/nav.html
index 52992d6..3bce09f 100644
--- a/pkg/appview/templates/components/nav.html
+++ b/pkg/appview/templates/components/nav.html
@@ -1,42 +1,19 @@
{{ define "nav" }}
+{{ end }}
+
+{{ define "nav-simple" }}
+
{{ end }}
diff --git a/pkg/appview/templates/pages/login.html b/pkg/appview/templates/pages/login.html
index d23db52..aad8380 100644
--- a/pkg/appview/templates/pages/login.html
+++ b/pkg/appview/templates/pages/login.html
@@ -6,11 +6,7 @@
{{ template "head" . }}
-
+ {{ template "nav-simple" . }}
diff --git a/pkg/auth/oauth/client.go b/pkg/auth/oauth/client.go
index b0f4dea..6ec48da 100644
--- a/pkg/auth/oauth/client.go
+++ b/pkg/auth/oauth/client.go
@@ -62,17 +62,6 @@ func NewAppWithScopes(baseURL string, store oauth.ClientAuthStore, scopes []stri
} else {
config = oauth.NewLocalhostConfig(redirectURI, scopes)
- // Append client_name to localhost client ID query string
- if clientName != "" {
- u, err := url.Parse(config.ClientID)
- if err == nil {
- q := u.Query()
- q.Set("client_name", clientName)
- u.RawQuery = q.Encode()
- config.ClientID = u.String()
- }
- }
-
slog.Info("Using public OAuth client (localhost development)")
}