tailscale/ipn/localapi
Sonia Appasamy 68da15516f ipn/localapi,client/web: clean up auth error handling
This commit makes two changes to the web client auth flow error
handling:

1. Properly passes back the error code from the noise request from
   the localapi. Previously we were using io.Copy, which was always
   setting a 200 response status code.
2. Clean up web client browser sessions on any /wait endpoint error.
   This avoids the user getting in a stuck state if something goes
   wrong with their auth path.

Updates tailscale/corp#14335

Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
2023-10-20 14:55:22 -04:00
..
cert.go ipn/ipnlocal: do unexpired cert renewals in the background 2023-10-12 16:02:45 -07:00
debugderp.go all: avoid repeated default interface lookups 2023-04-20 15:46:01 -07:00
disabled_stubs.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00
localapi_test.go ipn/localapi: make whois take IP or IP:port as documented, fix capmap netstack lookup 2023-10-10 11:05:04 -07:00
localapi.go ipn/localapi,client/web: clean up auth error handling 2023-10-20 14:55:22 -04:00
pprof.go all: update copyright and license headers 2023-01-27 15:36:29 -08:00