1
0
mirror of https://github.com/juanfont/headscale.git synced 2025-03-01 00:21:18 +01:00
juanfont.headscale/hscontrol
Kristoffer Dalby bcff0eaae7
handle register auth errors (#2435)
* handle register auth errors

This commit handles register auth errors as the
Tailscale clients expect. It returns the error as
part of a tailcfg.RegisterResponse and not as a
http error.

In addition it fixes a nil pointer panic triggered
by not handling the errors as part of this chain.

Fixes #2434

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

* changelog

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>

---------

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2025-02-23 17:02:46 +01:00
..
assets
capver drop versions older than 1.62 (#2405) 2025-02-05 12:02:32 +01:00
db use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
derp
dns
mapper add 1.80 to capver and update deps (#2394) 2025-02-05 07:17:51 +01:00
notifier use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
policy remove oidc migration (#2411) 2025-02-07 13:49:45 +01:00
templates use dedicated registration ID for auth flow (#2337) 2025-01-26 22:20:11 +01:00
types use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
util remove oidc migration (#2411) 2025-02-07 13:49:45 +01:00
app.go use tsweb debugger (#2420) 2025-02-11 11:18:59 +01:00
auth_test.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
auth.go use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
debug.go use tsweb debugger (#2420) 2025-02-11 11:18:59 +01:00
grpcv1_test.go
grpcv1.go use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
handlers.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
metrics.go
noise.go handle register auth errors (#2435) 2025-02-23 17:02:46 +01:00
oidc.go use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
platform_config.go Return better web errors to the user (#2398) 2025-02-01 15:25:18 +01:00
poll.go use helper function for constructing state updates (#2410) 2025-02-07 13:49:59 +01:00
suite_test.go
tailsql.go