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

Public Member Functions

 StoreMinimal (QObject *parent=nullptr)
 
void addUser (const AuthenticationUser &user)
 
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 29 of file minimal.h.

Member Function Documentation

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

Retrieve the user that matches the user info

Implements Cutelyst::AuthenticationStore.

virtual QVariant Cutelyst::StoreMinimal::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::StoreMinimal::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.