MCPcopy
hub / github.com/netbirdio/netbird / Header

Struct Header

proxy/internal/auth/header.go:20–25  ·  view source on GitHub ↗

Header implements header-based authentication. The proxy checks for the configured header in each request and validates its value via gRPC.

Source from the content-addressed store, hash-verified

18// Header implements header-based authentication. The proxy checks for the
19// configured header in each request and validates its value via gRPC.
20type Header struct {
21 id types.ServiceID
22 accountId types.AccountID
23 headerName string
24 client authenticator
25}
26
27// NewHeader creates a Header authentication scheme for the given header name.
28func NewHeader(client authenticator, id types.ServiceID, accountId types.AccountID, headerName string) Header {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected