58 const std::string &password)
const;
std::shared_ptr< Token > TokenPtr
This is the header file for a generated source file, GitSHA1.cpp.
void invalidate_token(Auth::TokenPtr token) const
Invalidate the authentication token, removing it from the database.
Auth::TokenPtr authenticate_token(const std::string &token_str) const
Attempt to authenticate with an authentication token.
void enforce_user_enabled(const Auth::User &u) const
Make sure the User u is authorized to log in.
The implementation class that runs the websocket server.
Auth::TokenPtr authenticate_credentials(const std::string &username, const std::string &password) const
Attempt to authenticate with username/password credential and generate an authentication token...
WSServer & server_
Reference to the Websocket server.
This class is responsible for providing an API to manage authentication for Websocket client...