26#ifndef ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_AUTH_REALM_COMPONENT_H_
27#define ROUTER_SRC_HTTP_INCLUDE_MYSQLROUTER_COMPONENT_HTTP_AUTH_REALM_COMPONENT_H_
33#include <system_error>
44 using value_type = std::map<std::string, std::shared_ptr<HttpAuthRealm>>;
54 void add_realm(
const std::string &
name, std::shared_ptr<HttpAuthRealm> realm);
59 void remove_realm(
const std::string &
name);
70 std::error_code authenticate(
const std::string &inst,
71 const std::string &username,
72 const std::string &authdata);
77 std::shared_ptr<HttpAuthRealm>
get(
const std::string &inst);
public API of HttpAuthRealm plugin.
Definition: http_auth_realm_component.h:42
value_type auth_realms_
Definition: http_auth_realm_component.h:85
HttpAuthRealmComponent(HttpAuthRealmComponent const &)=delete
std::map< std::string, std::shared_ptr< HttpAuthRealm > > value_type
Definition: http_auth_realm_component.h:44
void operator=(HttpAuthRealmComponent const &)=delete
HttpAuthRealmComponent()=default
std::mutex realms_m_
Definition: http_auth_realm_component.h:84
Authentication Realm.
Definition: http_auth_realm.h:47
#define HTTP_AUTH_REALM_LIB_EXPORT
Definition: http_auth_realm_lib_export.h:15
void get(PSI_field *, PSI_longlong *) noexcept
Definition: pfs_plugin_column_bigint_v1_all_empty.cc:32
case opt name
Definition: sslopt-case.h:29