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

Function setAuthUserPlaceholders

modules/caddyhttp/caddyauth/caddyauth.go:126–131  ·  view source on GitHub ↗
(repl *caddy.Replacer, namespace string, user User)

Source from the content-addressed store, hash-verified

124}
125
126func setAuthUserPlaceholders(repl *caddy.Replacer, namespace string, user User) {
127 repl.Set(namespace+".id", user.ID)
128 for k, v := range user.Metadata {
129 repl.Set(namespace+"."+k, v)
130 }
131}
132
133// Authenticator is a type which can authenticate a request.
134// If a request was not authenticated, it returns false. An

Callers 1

ServeHTTPMethod · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected