MCPcopy Create free account
hub / github.com/apache/mesos / createHttpAuthenticator

Function createHttpAuthenticator

src/examples/test_http_authenticator_module.cpp:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37static 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

Callers

nothing calls this directly

Calls 4

createFunction · 0.70
errorMethod · 0.65
isErrorMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected