MySQL 9.0.0
Source Code Documentation
|
public API of the HttpAuthBackend plugin. More...
#include <http_auth_backend_component.h>
Public Types | |
using | value_type = std::map< std::string, std::shared_ptr< HttpAuthBackend > > |
Public Member Functions | |
void | add_backend (const std::string &name, std::shared_ptr< HttpAuthBackend > backend) |
register an authentication backend. More... | |
void | remove_backend (const std::string &name) |
unregister an authentication backend. More... | |
std::error_code | authenticate (const std::string &inst, const std::string &username, const std::string &authdata) |
authenticate user against auth-backend. More... | |
Static Public Member Functions | |
static HttpAuthBackendComponent & | get_instance () |
get instance of Component. More... | |
Private Member Functions | |
HttpAuthBackendComponent (HttpAuthBackendComponent const &)=delete | |
void | operator= (HttpAuthBackendComponent const &)=delete |
HttpAuthBackendComponent ()=default | |
Private Attributes | |
std::mutex | backends_m_ |
value_type | auth_backends_ |
public API of the HttpAuthBackend plugin.
using HttpAuthBackendComponent::value_type = std::map<std::string, std::shared_ptr<HttpAuthBackend> > |
|
privatedelete |
|
privatedefault |
void HttpAuthBackendComponent::add_backend | ( | const std::string & | name, |
std::shared_ptr< HttpAuthBackend > | backend | ||
) |
register an authentication backend.
std::error_code HttpAuthBackendComponent::authenticate | ( | const std::string & | inst, |
const std::string & | username, | ||
const std::string & | authdata | ||
) |
authenticate user against auth-backend.
false | authentication without error. |
|
static |
get instance of Component.
|
privatedelete |
void HttpAuthBackendComponent::remove_backend | ( | const std::string & | name | ) |
unregister an authentication backend.
|
private |
|
private |