![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
Authentication backend based on the information stored in the metadata. More...
#include <http_auth_backend_metadata_cache.h>
Public Member Functions | |
| std::error_code | authenticate (const std::string &username, const std::string &authdata) override | 
| validate user and authdata against backend.  More... | |
| std::error_code | authorize (const rapidjson::Document &privileges) | 
| Check user privileges and perform authorization.  More... | |
  Public Member Functions inherited from HttpAuthBackend | |
| HttpAuthBackend ()=default | |
| HttpAuthBackend (const HttpAuthBackend &)=default | |
| HttpAuthBackend (HttpAuthBackend &&)=default | |
| HttpAuthBackend & | operator= (const HttpAuthBackend &)=default | 
| HttpAuthBackend & | operator= (HttpAuthBackend &&)=default | 
| virtual | ~HttpAuthBackend ()=0 | 
| destructor.  More... | |
Authentication backend based on the information stored in the metadata.
Authentication is based on the credentials stored in the 'router_rest_accounts' table. Password hashes are stored according to the following pattern: $<id>$<rounds>$<salt>$<hash> Where: id - set to "A", only caching_sha2_password is supported currently rounds - three digits number containing hashing rounds divided by 1000 salt - password salt, length 20 hash - password hash 
      
  | 
  overridevirtual | 
validate user and authdata against backend.
| false | no authentication error | 
Implements HttpAuthBackend.
| std::error_code HttpAuthBackendMetadataCache::authorize | ( | const rapidjson::Document & | privileges | ) | 
Check user privileges and perform authorization.
Empty privileges document means 'all privileges'.
| [in] | privileges | - JSON document containing user privileges. | 
| false | no authorization error |