17 #ifndef __MESOS_AUTHENTICATION_HTTP_COMBINED_AUTHENTICATOR_HPP__ 18 #define __MESOS_AUTHENTICATION_HTTP_COMBINED_AUTHENTICATOR_HPP__ 34 namespace authentication {
36 class CombinedAuthenticatorProcess;
47 const std::string& realm,
130 std::string
scheme()
const override;
141 #endif // __MESOS_AUTHENTICATION_HTTP_COMBINED_AUTHENTICATOR_HPP__ Future< Response > request(const Request &request, bool streamedResponse=false)
Asynchronously sends an HTTP request to the process and returns the HTTP response once the entire res...
An authenticator which holds references to multiple authenticators.
Definition: combined_authenticator.hpp:42
CombinedAuthenticator(const std::string &realm, std::vector< process::Owned< process::http::authentication::Authenticator >> &&authenticators)
The Authenticator interface allows us to implement different authenticators based on the scheme (e...
Definition: authenticator.hpp:103
~CombinedAuthenticator() override
Definition: executor.hpp:48
std::string scheme() const override
Returns the authentication schemes offered by the installed authenticators, separated by whitespace...
process::Future< process::http::authentication::AuthenticationResult > authenticate(const process::http::Request &request) override
Authenticates using the installed authenticators.
URI http(const std::string &host, const std::string &path="/", const Option< int > &port=None(), const Option< std::string > &query=None(), const Option< std::string > &fragment=None(), const Option< std::string > &user=None(), const Option< std::string > &password=None())
Creates an http URI with the given parameters.
Definition: http.hpp:35
Definition: future.hpp:58