MySQL 9.3.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
mrs::authentication::MysqlHandler Class Reference

#include <mysql_handler.h>

Inheritance diagram for mrs::authentication::MysqlHandler:
[legend]

Public Types

using AuthApp = database::entry::AuthApp
 
- Public Types inherited from mrs::interface::AuthorizeHandler
using SqlSessionCached = collector::MysqlCacheManager::CachedObject
 
using AuthUser = mrs::database::entry::AuthUser
 
using AuthApp = mrs::database::entry::AuthApp
 
using RequestContext = rest::RequestContext
 
using Session = http::SessionManager::Session
 
using SessionPtr = http::SessionManager::SessionPtr
 
using UserManager = mrs::users::UserManager
 

Public Member Functions

 MysqlHandler (const AuthApp &entry, collector::MysqlCacheManager *cache_manager, QueryFactory *qf)
 
const std::string & get_handler_name () const override
 
std::set< UniversalIdget_service_ids () const override
 
UniversalId get_id () const override
 
bool verify_credential (const Credentials &credentials, SqlSessionCached *out_cache, AuthUser *out_user) override
 
- Public Member Functions inherited from mrs::authentication::WwwAuthenticationHandler
 WwwAuthenticationHandler (const AuthApp &entry, QueryFactory *qf)
 
UserManagerget_user_manager () override
 
- Public Member Functions inherited from mrs::interface::AuthorizeHandler
virtual ~AuthorizeHandler ()=default
 
virtual void pre_authorize_account (AuthorizeHandler *handler, const std::string &account)=0
 

Private Attributes

collector::MysqlCacheManagercache_manager_
 

Additional Inherited Members

- Static Public Attributes inherited from mrs::authentication::WwwAuthenticationHandler
constexpr static char kAuthorization [] = "Authorization"
 
constexpr static char kWwwAuthenticate [] = "WWW-Authenticate"
 
- Protected Types inherited from mrs::authentication::WwwAuthenticationHandler
using SessionManager = mrs::http::SessionManager
 
using UserManager = mrs::users::UserManager
 
using QueryFactory = mrs::interface::QueryFactory
 
using Session = mrs::http::SessionManager::Session
 
- Protected Member Functions inherited from mrs::authentication::WwwAuthenticationHandler
bool validate_redirection_url (const std::optional< std::string > &url)
 
std::optional< Credentialsauthorize_method_get (RequestContext &ctxt, Session *session)
 
std::optional< Credentialsauthorize_method_post (RequestContext &ctxt, Session *session)
 
void throw_add_www_authenticate (const char *schema)
 
bool redirects (RequestContext &ctxt) const override
 
bool authorize (RequestContext &ctxt, const SessionPtr &session, AuthUser *out_user) override
 
std::optional< std::string > get_session_id_from_request_data (RequestContext &) override
 
const AuthAppget_entry () const override
 
- Protected Attributes inherited from mrs::authentication::WwwAuthenticationHandler
AuthApp entry_
 
UserManager um_
 

Member Typedef Documentation

◆ AuthApp

using mrs::authentication::MysqlHandler::AuthApp = database::entry::AuthApp

Constructor & Destructor Documentation

◆ MysqlHandler()

mrs::authentication::MysqlHandler::MysqlHandler ( const AuthApp entry,
collector::MysqlCacheManager cache_manager,
QueryFactory qf 
)

Member Function Documentation

◆ get_handler_name()

const std::string & mrs::authentication::MysqlHandler::get_handler_name ( ) const
overridevirtual

◆ get_id()

UniversalId mrs::authentication::MysqlHandler::get_id ( ) const
overridevirtual

◆ get_service_ids()

std::set< UniversalId > mrs::authentication::MysqlHandler::get_service_ids ( ) const
overridevirtual

◆ verify_credential()

bool mrs::authentication::MysqlHandler::verify_credential ( const Credentials credentials,
SqlSessionCached out_cache,
AuthUser out_user 
)
overridevirtual

Member Data Documentation

◆ cache_manager_

collector::MysqlCacheManager* mrs::authentication::MysqlHandler::cache_manager_
private

The documentation for this class was generated from the following files: