![]() |
cutelyst 5.0.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
|
Authentication data store using a flat file. More...
#include <Cutelyst/Plugins/Authentication/htpasswd.h>

Public Member Functions | |
| StoreHtpasswd (const QString &name) | |
| virtual | ~StoreHtpasswd () override |
| void | addUser (const ParamsMultiMap &user) |
| AuthenticationUser | findUser (Context *c, const ParamsMultiMap &userInfo) override final |
| QVariant | forSession (Context *c, const AuthenticationUser &user) override final |
| AuthenticationUser | fromSession (Context *c, const QVariant &frozenUser) override final |
| Public Member Functions inherited from Cutelyst::AuthenticationStore | |
| AuthenticationStore () | |
| virtual | ~AuthenticationStore () |
| virtual AuthenticationUser | autoCreateUser (Context *c, const ParamsMultiMap &userinfo) const |
| virtual AuthenticationUser | autoUpdateUser (Context *c, const ParamsMultiMap &userinfo) const |
| virtual bool | canAutoCreateUser () const |
| virtual bool | canAutoUpdateUser () const |
This authentication data store stores user data as a combination of username:password in a flat file where each row contains one user. This is like the file created by Apache’s htpasswd command.
Definition at line 20 of file htpasswd.h.
|
explicit |
Constructs a new StoreHtpasswd object with the given file name.
Definition at line 18 of file htpasswd.cpp.
References StoreHtpasswd().
Referenced by StoreHtpasswd().
|
overridevirtual |
Destroys the StoreHtpasswd object.
Definition at line 23 of file htpasswd.cpp.
| void StoreHtpasswd::addUser | ( | const ParamsMultiMap & | user | ) |
Appends the user to htpasswd storage
Definition at line 27 of file htpasswd.cpp.
|
finaloverridevirtual |
Reimplemented from AuthenticationStore::findUser().
Implements Cutelyst::AuthenticationStore.
Definition at line 70 of file htpasswd.cpp.
References Cutelyst::AuthenticationUser::insert(), Cutelyst::AuthenticationUser::setId(), and Cutelyst::AuthenticationUser::value().
Referenced by fromSession().
|
finaloverridevirtual |
Reimplemented from AuthenticationStore::forSession().
Reimplemented from Cutelyst::AuthenticationStore.
Definition at line 94 of file htpasswd.cpp.
References Cutelyst::AuthenticationUser::id().
|
finaloverridevirtual |
Reimplemented from AuthenticationStore::fromSession().
Reimplemented from Cutelyst::AuthenticationStore.
Definition at line 100 of file htpasswd.cpp.
References findUser().