MySQL 8.4.2
Source Code Documentation
|
public API of HttpAuthRealm plugin. More...
#include <http_auth_realm_component.h>
Public Types | |
using | value_type = std::map< std::string, std::shared_ptr< HttpAuthRealm > > |
Public Member Functions | |
void | add_realm (const std::string &name, std::shared_ptr< HttpAuthRealm > realm) |
register a realm with a handler. More... | |
void | remove_realm (const std::string &name) |
unregister a realm. More... | |
std::error_code | authenticate (const std::string &inst, const std::string &username, const std::string &authdata) |
authenticate user with authdata against realm. More... | |
std::shared_ptr< HttpAuthRealm > | get (const std::string &inst) |
get realm by instance name. More... | |
Static Public Member Functions | |
static HttpAuthRealmComponent & | get_instance () |
get singleton instance of the component. More... | |
Private Member Functions | |
HttpAuthRealmComponent (HttpAuthRealmComponent const &)=delete | |
void | operator= (HttpAuthRealmComponent const &)=delete |
HttpAuthRealmComponent ()=default | |
Private Attributes | |
std::mutex | realms_m_ |
value_type | auth_realms_ |
public API of HttpAuthRealm plugin.
using HttpAuthRealmComponent::value_type = std::map<std::string, std::shared_ptr<HttpAuthRealm> > |
|
privatedelete |
|
privatedefault |
void HttpAuthRealmComponent::add_realm | ( | const std::string & | name, |
std::shared_ptr< HttpAuthRealm > | realm | ||
) |
register a realm with a handler.
std::error_code HttpAuthRealmComponent::authenticate | ( | const std::string & | inst, |
const std::string & | username, | ||
const std::string & | authdata | ||
) |
authenticate user with authdata against realm.
inst | instance name of realm |
username | name of user to authenticate |
authdata | credentials of user |
false | authentication without error. |
std::shared_ptr< HttpAuthRealm > HttpAuthRealmComponent::get | ( | const std::string & | inst | ) |
get realm by instance name.
|
static |
get singleton instance of the component.
|
privatedelete |
void HttpAuthRealmComponent::remove_realm | ( | const std::string & | name | ) |
unregister a realm.
|
private |
|
private |