| 39 | } |
| 40 | |
| 41 | type tailscaleAuth struct { |
| 42 | any bool // whether all access is permitted to anybody in the tailnet |
| 43 | |
| 44 | lc *tailscale.LocalClient |
| 45 | anyForUser string // if non-empty, the user for whom any access is permitted |
| 46 | } |
| 47 | |
| 48 | func (ta *tailscaleAuth) AllowedAccess(req *http.Request) Operation { |
| 49 | // AddAuthHeader inserts in req the credentials needed |
nothing calls this directly
no outgoing calls
no test coverage detected