refactor: use tailscale api for user checking instead of tsnet

This commit is contained in:
Stavros
2026-07-08 01:05:43 +03:00
parent 73cc4808bc
commit d408fe9585
14 changed files with 262 additions and 496 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ type LDAPContext struct {
type TailscaleContext struct {
BaseContext
UserID string
NodeName string
}
func (c *UserContext) IsAuthenticated() bool {
@@ -249,7 +249,7 @@ func (c *UserContext) OAuthName() string {
func (c *UserContext) TailscaleNodeName() string {
if c.Tailscale != nil {
return c.Tailscale.Username
return c.Tailscale.NodeName
}
return ""
}