|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
58 const std::string &password)
const;
std::shared_ptr< Token > TokenPtr
void enforce_user_enabled(const Auth::User &u) const
Make sure the User u is authorized to log in.
Auth::TokenPtr authenticate_token(const std::string &token_str) const
Attempt to authenticate with an authentication token.
This class is responsible for providing an API to manage authentication for Websocket client.
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.
This is the header file for a generated source file, GitSHA1.cpp.
WSServer & server_
Reference to the Websocket server.
The implementation class that runs the websocket server.
void invalidate_token(Auth::TokenPtr token) const
Invalidate the authentication token, removing it from the database.