Cutelyst  1.5.0
Public Member Functions | List of all members
Cutelyst::StoreHtpasswd Class Reference
Inheritance diagram for Cutelyst::StoreHtpasswd:
Inheritance graph
[legend]

Public Member Functions

 StoreHtpasswd (const QString &file, QObject *parent=nullptr)
 
void addUser (const ParamsMultiMap &user)
 
virtual AuthenticationUser findUser (Context *c, const ParamsMultiMap &userInfo) final
 
virtual QVariant forSession (Context *c, const AuthenticationUser &user) final
 
virtual AuthenticationUser fromSession (Context *c, const QVariant &frozenUser) final
 
- Public Member Functions inherited from Cutelyst::AuthenticationStore
 AuthenticationStore (QObject *parent=nullptr)
 
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
 

Detailed Description

Definition at line 28 of file htpasswd.h.

Member Function Documentation

virtual AuthenticationUser Cutelyst::StoreHtpasswd::findUser ( Context c,
const ParamsMultiMap userinfo 
)
finalvirtual

Retrieve the user that matches the user info

Implements Cutelyst::AuthenticationStore.

virtual QVariant Cutelyst::StoreHtpasswd::forSession ( Context c,
const AuthenticationUser user 
)
finalvirtual

Reimplement this so that you return a serializable value that can be used to identify the user. The default implementation just returns the user.

Reimplemented from Cutelyst::AuthenticationStore.

virtual AuthenticationUser Cutelyst::StoreHtpasswd::fromSession ( Context c,
const QVariant &  frozenUser 
)
finalvirtual

Reimplement this so that you return a User that was stored in the session.

The default implementation just returns the user.

Reimplemented from Cutelyst::AuthenticationStore.