MySQL 8.0.39
Source Code Documentation
http_auth_backend_plugin.cc File Reference
#include <array>
#include <future>
#include <mutex>
#include <thread>
#include <sys/types.h>
#include "mysql/harness/config_option.h"
#include "mysql/harness/config_parser.h"
#include "mysql/harness/loader.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/plugin.h"
#include "mysql/harness/plugin_config.h"
#include "mysql/harness/utility/string.h"
#include "mysqlrouter/http_auth_backend_component.h"
#include "mysqlrouter/http_auth_backend_export.h"
#include "mysqlrouter/metadata_cache.h"
#include "mysqlrouter/supported_http_options.h"
#include "http_auth_backend.h"
#include "http_auth_backend_metadata_cache.h"

Classes

class  anonymous_namespace{http_auth_backend_plugin.cc}::HtpasswdPluginConfig
 
class  anonymous_namespace{http_auth_backend_plugin.cc}::HttpAuthBackendFactory
 
class  anonymous_namespace{http_auth_backend_plugin.cc}::PluginConfig
 

Namespaces

namespace  anonymous_namespace{http_auth_backend_plugin.cc}
 

Macros

#define GET_OPTION_CHECKED(option, section, name, value)
 

Typedefs

using StringOption = mysql_harness::StringOption
 

Functions

static void init (mysql_harness::PluginFuncEnv *env)
 
static void start (mysql_harness::PluginFuncEnv *env)
 
static void deinit (mysql_harness::PluginFuncEnv *)
 

Variables

static constexpr const char kSectionName [] {"http_auth_backend"}
 http auth backend plugin. More...
 
static std::vector< std::string > registered_backends
 
std::shared_ptr< HttpAuthBackendComponent::value_typeauth_backends
 
static const std::array< const char *, 2 > required
 
mysql_harness::Plugin HTTP_AUTH_BACKEND_EXPORT harness_plugin_http_auth_backend
 

Macro Definition Documentation

◆ GET_OPTION_CHECKED

#define GET_OPTION_CHECKED (   option,
  section,
  name,
  value 
)
Value:
static_assert( \
option = get_option(section, name, value);
static std::string get_option(const mysql_harness::ConfigSection *section, const std::string &key, const std::string &def_value)
Definition: metadata_cache_plugin.cc:107
constexpr bool str_in_collection(const T &t, const std::string_view &k)
Definition: string.h:157
case opt name
Definition: sslopt-case.h:33
static constexpr std::array< const char *, 2 > http_backend_supported_options
Definition: supported_http_options.h:38

Typedef Documentation

◆ StringOption

Function Documentation

◆ deinit()

static void deinit ( mysql_harness::PluginFuncEnv )
static

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

◆ start()

static void start ( mysql_harness::PluginFuncEnv env)
static

Variable Documentation

◆ auth_backends

std::shared_ptr<HttpAuthBackendComponent::value_type> auth_backends

◆ harness_plugin_http_auth_backend

mysql_harness::Plugin HTTP_AUTH_BACKEND_EXPORT harness_plugin_http_auth_backend
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"HTTP_AUTH_BACKEND",
VERSION_NUMBER(0, 0, 1),
required.size(),
required.data(),
0,
nullptr,
init,
nullptr,
false,
}
static void init(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:137
static const std::array< const char *, 2 > required
Definition: http_auth_backend_plugin.cc:218
static void start(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_backend_plugin.cc:177
static void deinit(mysql_harness::PluginFuncEnv *)
Definition: http_auth_backend_plugin.cc:208

◆ kSectionName

constexpr const char kSectionName[] {"http_auth_backend"}
staticconstexpr

http auth backend plugin.

section name : http_auth_backend

◆ registered_backends

std::vector<std::string> registered_backends
static

◆ required

const std::array<const char *, 2> required
static
Initial value:
= {{
"logger",
"router_protobuf",
}}