DevAuth is used for development. It has one password and one vivify password, but also accepts all passwords from localhost. Usernames are ignored.
| 295 | // DevAuth is used for development. It has one password and one vivify password, but |
| 296 | // also accepts all passwords from localhost. Usernames are ignored. |
| 297 | type DevAuth struct { |
| 298 | Password string |
| 299 | // Password for the vivify mode, automatically set to "vivi" + Password |
| 300 | VivifyPass *string |
| 301 | } |
| 302 | |
| 303 | func (da *DevAuth) AllowedAccess(req *http.Request) Operation { |
| 304 | _, pass, err := httputil.BasicAuth(req) |
nothing calls this directly
no outgoing calls
no test coverage detected