MCPcopy Create free account
hub / github.com/3rdparty/libprocess / BasicAuthenticator

Class BasicAuthenticator

include/process/authenticator.hpp:134–150  ·  view source on GitHub ↗

* Implements the "Basic" authentication scheme using a * fixed set of credentials. */

Source from the content-addressed store, hash-verified

132 * fixed set of credentials.
133 */
134class BasicAuthenticator : public Authenticator
135{
136public:
137 BasicAuthenticator(
138 const std::string& realm,
139 const hashmap<std::string, std::string>& credentials);
140
141 ~BasicAuthenticator() override;
142
143 Future<AuthenticationResult> authenticate(
144 const http::Request& request) override;
145
146 std::string scheme() const override;
147
148private:
149 Owned<BasicAuthenticatorProcess> process_;
150};
151
152
153#ifdef USE_SSL_SOCKET

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected