cutelyst  4.4.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
minimal.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2013-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef AUTHENTICATION_STORE_MINIMAL_H
6 #define AUTHENTICATION_STORE_MINIMAL_H
7 
8 #include <Cutelyst/Plugins/Authentication/authenticationstore.h>
9 
10 #include <QVector>
11 
12 namespace Cutelyst {
13 
22 class CUTELYST_PLUGIN_AUTHENTICATION_EXPORT StoreMinimal : public AuthenticationStore
23 {
24 public:
28  explicit StoreMinimal(const QString &idField);
29 
33  virtual ~StoreMinimal() override;
34 
38  void addUser(const AuthenticationUser &user);
39 
43  AuthenticationUser findUser(Context *c, const ParamsMultiMap &userInfo) override final;
44 
48  QVariant forSession(Context *c, const AuthenticationUser &user) override final;
49 
53  AuthenticationUser fromSession(Context *c, const QVariant &frozenUser) override final;
54 
55 private:
56  QString m_idField;
58 };
59 
60 } // namespace Cutelyst
61 
62 #endif // AUTHENTICATION_STORE_MINIMAL_H
Abstract class to retrieve user data from a store.
Container for user data retrieved from an AuthenticationStore.
The Cutelyst Context.
Definition: context.h:42
Minimal in memory authentication data store.
Definition: minimal.h:23
The Cutelyst namespace holds all public Cutelyst API.