basicAuth produces a base64-encoded "Authorization: Basic ..." header. Both username and password are taken straight from configuration — this scheme doesn't support per-request credentials because real-world basic auth setups use a single service identity.
| 93 | // this scheme doesn't support per-request credentials because real-world |
| 94 | // basic auth setups use a single service identity. |
| 95 | type basicAuth struct { |
| 96 | cfg AuthConfig |
| 97 | } |
| 98 | |
| 99 | func (b *basicAuth) Apply(_ context.Context, req *http.Request, _ http.Header) error { |
| 100 | if b.cfg.Username == "" { |
nothing calls this directly
no outgoing calls
no test coverage detected