Function
setAuthUserPlaceholders
(repl *caddy.Replacer, namespace string, user User)
Source from the content-addressed store, hash-verified
| 124 | } |
| 125 | |
| 126 | func 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 |
Tested by
no test coverage detected