MySQL 9.1.0
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/dynamic_config.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/section_config_exposer.h"
#include "mysql/harness/utility/string.h"
#include "mysqlrouter/component/http_auth_backend_component.h"
#include "mysqlrouter/component/http_auth_realm_component.h"
#include "mysqlrouter/http_auth_realm_export.h"
#include "mysqlrouter/http_constants.h"
#include "mysqlrouter/supported_http_options.h"

Classes

class  HttpAuthRealmPluginConfig
 
class  anonymous_namespace{http_auth_realm_plugin.cc}::HttpAuthRealmConfigExposer
 

Namespaces

namespace  anonymous_namespace{http_auth_realm_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 deinit (mysql_harness::PluginFuncEnv *)
 
static void expose_configuration (mysql_harness::PluginFuncEnv *env, const char *, bool initial)
 

Variables

static constexpr const char kSectionName [] {"http_auth_realm"}
 
static std::vector< std::string > registered_realms
 
std::shared_ptr< HttpAuthRealmComponent::value_typeauth_realms
 
static constexpr std::array 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);
constexpr bool str_in_collection(const T &t, const std::string_view &k)
Definition: string.h:94
case opt name
Definition: sslopt-case.h:29
static constexpr std::array http_auth_realm_suported_options
Definition: supported_http_options.h:36

Typedef Documentation

◆ StringOption

Function Documentation

◆ deinit()

static void deinit ( mysql_harness::PluginFuncEnv )
static

◆ expose_configuration()

static void expose_configuration ( mysql_harness::PluginFuncEnv env,
const char *  ,
bool  initial 
)
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 constexpr std::array required
Definition: http_auth_realm_plugin.cc:201
static void expose_configuration(mysql_harness::PluginFuncEnv *env, const char *, bool initial)
Definition: http_auth_realm_plugin.cc:234
static void init(mysql_harness::PluginFuncEnv *env)
Definition: http_auth_realm_plugin.cc:117
static void deinit(mysql_harness::PluginFuncEnv *)
Definition: http_auth_realm_plugin.cc:191

◆ kSectionName

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

◆ registered_realms

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

◆ required

constexpr std::array required
staticconstexpr
Initial value:
{
"logger",
}