Header implements header-based authentication. The proxy checks for the configured header in each request and validates its value via gRPC.
| 18 | // Header implements header-based authentication. The proxy checks for the |
| 19 | // configured header in each request and validates its value via gRPC. |
| 20 | type 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. |
| 28 | func NewHeader(client authenticator, id types.ServiceID, accountId types.AccountID, headerName string) Header { |
nothing calls this directly
no outgoing calls
no test coverage detected