MCPcopy
hub / github.com/caddyserver/caddy / staticAuthenticator

Struct staticAuthenticator

modules/caddyhttp/caddyauth/caddyauth_test.go:189–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189type staticAuthenticator struct {
190 user User
191 authed bool
192 err error
193}
194
195func (a staticAuthenticator) Authenticate(http.ResponseWriter, *http.Request) (User, bool, error) {
196 return a.user, a.authed, a.err

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected