AuthUsers authenticates users with the given map[username]password.
(usernamesPasswords map[string]string)
| 43 | |
| 44 | // AuthUsers authenticates users with the given map[username]password. |
| 45 | func AuthUsers(usernamesPasswords map[string]string) Authenticator { |
| 46 | return &mapAuthenticator{usernamesPasswords} |
| 47 | } |
| 48 | |
| 49 | // AuthUser is the same as AuthUsers, but for a single user. |
| 50 | func AuthUser(username, password string) Authenticator { |