26#ifndef ROUTER_HTTP_AUTH_REALM_INCLUDED
27#define ROUTER_HTTP_AUTH_REALM_INCLUDED
32#include <system_error>
50 const std::string &method,
const std::string &backend)
51 : name_{
name}, require_{require}, method_{method}, backend_{backend} {}
56 std::string
name()
const {
return name_; }
61 std::string
require()
const {
return require_; }
68 std::string
method()
const {
return method_; }
75 std::string
backend()
const {
return backend_; }
83 std::error_code authenticate(
const std::string &username,
Authentication Realm.
Definition: http_auth_realm.h:47
std::string name() const
name of the auth realm.
Definition: http_auth_realm.h:56
HttpAuthRealm(const std::string &name, const std::string &require, const std::string &method, const std::string &backend)
Definition: http_auth_realm.h:49
std::string method() const
Authentication Method name.
Definition: http_auth_realm.h:68
std::string backend_
Definition: http_auth_realm.h:90
std::string backend() const
Authentication Backend name.
Definition: http_auth_realm.h:75
std::string require() const
require notitation of the realm
Definition: http_auth_realm.h:61
std::string method_
Definition: http_auth_realm.h:89
std::string name_
Definition: http_auth_realm.h:87
std::string require_
Definition: http_auth_realm.h:88
#define HTTP_AUTH_REALM_LIB_EXPORT
Definition: http_auth_realm_lib_export.h:15
static char * password
Definition: mysql_secure_installation.cc:56
case opt name
Definition: sslopt-case.h:33