25#ifndef MYSQLROUTER_HTTP_AUTH_BACKEND_COMPONENT_INCLUDED
26#define MYSQLROUTER_HTTP_AUTH_BACKEND_COMPONENT_INCLUDED
32#include <system_error>
43 using value_type = std::map<std::string, std::shared_ptr<HttpAuthBackend>>;
53 void add_backend(
const std::string &
name,
54 std::shared_ptr<HttpAuthBackend> backend);
59 void remove_backend(
const std::string &
name);
67 std::error_code authenticate(
const std::string &inst,
68 const std::string &username,
69 const std::string &authdata);
public API of the HttpAuthBackend plugin.
Definition: http_auth_backend_component.h:41
value_type auth_backends_
Definition: http_auth_backend_component.h:77
void operator=(HttpAuthBackendComponent const &)=delete
HttpAuthBackendComponent()=default
std::map< std::string, std::shared_ptr< HttpAuthBackend > > value_type
Definition: http_auth_backend_component.h:43
HttpAuthBackendComponent(HttpAuthBackendComponent const &)=delete
std::mutex backends_m_
Definition: http_auth_backend_component.h:76
Base class of all AuthBackends.
Definition: http_auth_backend.h:44
#define HTTP_AUTH_BACKEND_LIB_EXPORT
Definition: http_auth_backend_lib_export.h:15
case opt name
Definition: sslopt-case.h:32