client/web: remove old /redirect handler

I thought this had something to do with Synology or QNAP support, since
they both have specific authentication logic.  But it turns out this was
part of the original web client added in #1621, and then refactored as
part of #2093.  But with how we handle logging in now, it's never
called.

Updates tailscale/corp#13775

Signed-off-by: Will Norris <will@tailscale.com>
This commit is contained in:
Will Norris 2023-08-22 16:08:07 -07:00 committed by Will Norris
parent 05523bdcdd
commit cf45d6a275
2 changed files with 1 additions and 63 deletions

View File

@ -1,57 +0,0 @@
<html>
<head>
<title>Redirecting...</title>
<style>
html,
body {
height: 100%;
}
html {
background-color: rgb(249, 247, 246);
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
line-height: 1.5;
-webkit-text-size-adjust: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.spinner {
margin-bottom: 2rem;
border: 4px rgba(112, 110, 109, 0.5) solid;
border-left-color: transparent;
border-radius: 9999px;
width: 4rem;
height: 4rem;
-webkit-animation: spin 700ms linear infinite;
animation: spin 800ms linear infinite;
}
.label {
color: rgb(112, 110, 109);
padding-left: 0.4rem;
}
@-webkit-keyframes spin {
to {
transform: rotate(360deg);
}
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
</head> <body>
<div class="spinner"></div>
<div class="label">Redirecting...</div>
</body>

View File

@ -45,7 +45,7 @@
//go:embed yarn.lock index.html *.js *.json src/*
var _ embed.FS
//go:embed web.html web.css auth-redirect.html
//go:embed web.html web.css
var embeddedFS embed.FS
var tmpls *template.Template
@ -302,11 +302,6 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
switch {
case r.URL.Path == "/redirect" || r.URL.Path == "/redirect/":
if err := tmpls.ExecuteTemplate(w, "auth-redirect.html", nil); err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
return
case r.Method == "POST":
s.servePostNodeUpdate(w, r)
return