MySQL 8.0.40
Source Code Documentation
http_auth_realm_plugin.cc File Reference
#include "http_auth_realm.h"
#include <sys/types.h>
#include <array>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#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_realm_component.h"
#include "mysqlrouter/http_auth_realm_export.h"
#include "mysqlrouter/supported_http_options.h"

Classes

class  HttpAuthRealmPluginConfig
 

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 deinit (mysql_harness::PluginFuncEnv *)
 

Variables

static constexpr const char kSectionName [] {"http_auth_realm"}
 
static std::vector< std::string > registered_realms
 
std::shared_ptr< HttpAuthRealmComponent::value_typeauth_realms
 
constexpr const char kMethodNameBasic [] {"basic"}
 
static const std::array< const char *, 1 > required
 
mysql_harness::Plugin HTTP_AUTH_REALM_EXPORT harness_plugin_http_auth_realm
 

Macro Definition Documentation

◆ GET_OPTION_CHECKED

#define GET_OPTION_CHECKED (   option,
  section,
  name,
  value 
)
Value:
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 *, 4 > http_auth_realm_suported_options
Definition: supported_http_options.h:35

Typedef Documentation

◆ StringOption

Function Documentation

◆ deinit()

static void deinit ( mysql_harness::PluginFuncEnv )
static

◆ init()

static void init ( mysql_harness::PluginFuncEnv env)
static

Variable Documentation

◆ auth_realms

std::shared_ptr<HttpAuthRealmComponent::value_type> auth_realms

◆ harness_plugin_http_auth_realm

mysql_harness::Plugin HTTP_AUTH_REALM_EXPORT harness_plugin_http_auth_realm
Initial value:
= {
mysql_harness::PLUGIN_ABI_VERSION,
mysql_harness::ARCHITECTURE_DESCRIPTOR,
"HTTP_AUTH_REALM",
VERSION_NUMBER(0, 0, 1),
required.size(),
required.data(),
0,
nullptr,
init,
nullptr,
nullptr,
false,
}
static void init(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_realm_plugin.cc:115
static const std::array< const char *, 1 > required
Definition: http_auth_realm_plugin.cc:199
static void deinit(mysql_harness::PluginFuncEnv *)
Definition: http_auth_realm_plugin.cc:189

◆ kMethodNameBasic

constexpr const char kMethodNameBasic[] {"basic"}
constexpr

◆ kSectionName

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

◆ registered_realms

std::vector<std::string> registered_realms
static

◆ required

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