25#ifndef MYSQLROUTER_HTTP_AUTH_REALM_COMPONENT_INCLUDED
26#define MYSQLROUTER_HTTP_AUTH_REALM_COMPONENT_INCLUDED
32#include <system_error>
43 using value_type = std::map<std::string, std::shared_ptr<HttpAuthRealm>>;
53 void add_realm(
const std::string &
name, std::shared_ptr<HttpAuthRealm> realm);
58 void remove_realm(
const std::string &
name);
69 std::error_code authenticate(
const std::string &inst,
70 const std::string &username,
71 const std::string &authdata);
76 std::shared_ptr<HttpAuthRealm>
get(
const std::string &inst);
public API of HttpAuthRealm plugin.
Definition: http_auth_realm_component.h:41
value_type auth_realms_
Definition: http_auth_realm_component.h:84
HttpAuthRealmComponent(HttpAuthRealmComponent const &)=delete
std::map< std::string, std::shared_ptr< HttpAuthRealm > > value_type
Definition: http_auth_realm_component.h:43
void operator=(HttpAuthRealmComponent const &)=delete
HttpAuthRealmComponent()=default
std::mutex realms_m_
Definition: http_auth_realm_component.h:83
Authentication Realm.
Definition: http_auth_realm.h:46
#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:31
case opt name
Definition: sslopt-case.h:32