26#ifndef ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_AUTH_BACKEND_COMPONENT_H_
27#define ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_AUTH_BACKEND_COMPONENT_H_
33#include <system_error>
44 using value_type = std::map<std::string, std::shared_ptr<HttpAuthBackend>>;
54 void add_backend(
const std::string &
name,
55 std::shared_ptr<HttpAuthBackend> backend);
60 void remove_backend(
const std::string &
name);
68 std::error_code authenticate(
const std::string &inst,
69 const std::string &username,
70 const std::string &authdata);
public API of the HttpAuthBackend plugin.
Definition: http_auth_backend_component.h:42
value_type auth_backends_
Definition: http_auth_backend_component.h:78
void operator=(HttpAuthBackendComponent const &)=delete
HttpAuthBackendComponent()=default
std::map< std::string, std::shared_ptr< HttpAuthBackend > > value_type
Definition: http_auth_backend_component.h:44
HttpAuthBackendComponent(HttpAuthBackendComponent const &)=delete
std::mutex backends_m_
Definition: http_auth_backend_component.h:77
Base class of all AuthBackends.
Definition: http_auth_backend.h:45
#define HTTP_AUTH_BACKEND_LIB_EXPORT
Definition: http_auth_backend_lib_export.h:15
case opt name
Definition: sslopt-case.h:29