From ddb4b5112293b891363d12c5fda7988d6dd17c3b Mon Sep 17 00:00:00 2001 From: Sonia Appasamy Date: Fri, 8 Dec 2023 13:26:42 -0500 Subject: [PATCH] client/web: always run platform auth for login mode Even if connected to the login client over tailscale, still check platform auth so the browser can obtain the tokens it needs to make platform requests complete successfully. Updates #10261 Signed-off-by: Sonia Appasamy --- client/web/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/web/web.go b/client/web/web.go index c592a4155..5cde35721 100644 --- a/client/web/web.go +++ b/client/web/web.go @@ -406,7 +406,7 @@ func (s *Server) serveAPIAuth(w http.ResponseWriter, r *http.Request) { session, whois, err := s.getSession(r) switch { - case err != nil && errors.Is(err, errNotUsingTailscale): + case s.mode == LoginServerMode || errors.Is(err, errNotUsingTailscale): // not using tailscale, so perform platform auth switch distro.Get() { case distro.Synology: