| 35 | |
| 36 | |
| 37 | static Authenticator* createHttpAuthenticator(const Parameters& parameters) |
| 38 | { |
| 39 | Try<Authenticator*> authenticator = |
| 40 | BasicAuthenticatorFactory::create(parameters); |
| 41 | |
| 42 | if (authenticator.isError()) { |
| 43 | LOG(ERROR) << "Failed to create basic HTTP authenticator: " |
| 44 | << authenticator.error(); |
| 45 | |
| 46 | return nullptr; |
| 47 | } |
| 48 | |
| 49 | return authenticator.get(); |
| 50 | } |
| 51 | |
| 52 | |
| 53 | // Declares an HTTP Authenticator module named |