From 8d768f5f3fac1547f7d29a56e460751330a759d0 Mon Sep 17 00:00:00 2001 From: Seongmin Lee Date: Sun, 19 Oct 2025 13:38:47 +0000 Subject: [PATCH] appview/oauth: support local PDS override `Client.Transport` to support PDS served in localhost Signed-off-by: Seongmin Lee --- appview/oauth/oauth.go | 4 ++++ appview/state/login.go | 1 + 2 file(s) changed, 5 insertion(s)(+), 0 deletion(s)(-) diff --git a/appview/oauth/oauth.go b/appview/oauth/oauth.go --- a/appview/oauth/oauth.go +++ b/appview/oauth/oauth.go @@ -74,6 +74,10 @@ clientApp := oauth.NewClientApp(&oauthConfig, authStore) clientApp.Dir = res.Directory() + // allow non-public transports in dev mode + if config.Core.Dev { + clientApp.Resolver.Client.Transport = http.DefaultTransport + } clientName := config.Core.AppviewName diff --git a/appview/state/login.go b/appview/state/login.go --- a/appview/state/login.go +++ b/appview/state/login.go @@ -46,6 +46,7 @@ redirectURL, err := s.oauth.ClientApp.StartAuthFlow(r.Context(), handle) if err != nil { + l.Error("failed to start auth", "err", err) http.Error(w, err.Error(), http.StatusInternalServerError) return } -- tangled.sh