1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-10-28 10:51:44 +01:00
juanfont.headscale/hscontrol
Andrey Bobelev c4a8c038cd fix: return valid AuthUrl in followup request on expired reg id
- tailscale client gets a new AuthUrl and sets entry in the regcache
- regcache entry expires
- client doesn't know about that
- client always polls followup request а gets error

When user clicks "Login" in the app (after cache expiry), they visit
invalid URL and get "node not found in registration cache". Some clients
on Windows for e.g. can't get a new AuthUrl without restart the app.

To fix that we can issue a new reg id and return user a new valid
AuthUrl.

RegisterNode is refactored to be created with NewRegisterNode() to
autocreate channel and other stuff.
2025-10-11 05:57:39 +02:00
..
assets update flake, fix prettier lint 2023-09-05 08:47:43 +02:00
capver mapper: produce map before poll (#2628) 2025-07-28 11:15:53 +02:00
db mapper: send change instead of full update (#2775) 2025-09-17 14:23:21 +02:00
derp derp: fix flaky shuffle test (#2772) 2025-09-11 13:49:02 +00:00
dns integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
mapper mapper: send change instead of full update (#2775) 2025-09-17 14:23:21 +02:00
policy mapper: send change instead of full update (#2775) 2025-09-17 14:23:21 +02:00
routes debug: add json and improve 2025-09-09 09:40:00 +02:00
state fix: return valid AuthUrl in followup request on expired reg id 2025-10-11 05:57:39 +02:00
templates integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
types fix: return valid AuthUrl in followup request on expired reg id 2025-10-11 05:57:39 +02:00
util cmd: add option to get and set policy directly from database (#2765) 2025-09-12 16:55:15 +02:00
app.go cli: use gobuild version handling (#2770) 2025-09-12 11:47:31 +02:00
auth.go fix: return valid AuthUrl in followup request on expired reg id 2025-10-11 05:57:39 +02:00
debug.go lint and leftover 2025-09-09 09:40:00 +02:00
grpcv1_test.go rename package name to hscontrol 2023-05-10 20:47:51 +02:00
grpcv1.go fix: return valid AuthUrl in followup request on expired reg id 2025-10-11 05:57:39 +02:00
handlers.go lint and leftover 2025-09-09 09:40:00 +02:00
metrics.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00
noise.go lint and leftover 2025-09-09 09:40:00 +02:00
oidc.go fix: return valid AuthUrl in followup request on expired reg id 2025-10-11 05:57:39 +02:00
platform_config.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
poll.go poll: add missing godoc (#2763) 2025-09-11 14:15:19 +02:00
suite_test.go Redo OIDC configuration (#2020) 2024-10-02 14:50:17 +02:00
tailsql.go integration: replace time.Sleep with assert.EventuallyWithT (#2680) 2025-07-10 23:38:55 +02:00