AuthUser is the same as AuthUsers, but for a single user.
(username, password string)
| 48 | |
| 49 | // AuthUser is the same as AuthUsers, but for a single user. |
| 50 | func AuthUser(username, password string) Authenticator { |
| 51 | return AuthUsers(map[string]string{username: password}) |
| 52 | } |
| 53 | |
| 54 | var noopAuthenticator = &mapAuthenticator{} |
| 55 |