cutelyst
5.0.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;
57
QVector<AuthenticationUser>
m_users;
58
};
59
60
}
// namespace Cutelyst
61
62
#endif
// AUTHENTICATION_STORE_MINIMAL_H
Cutelyst::AuthenticationStore
Abstract class to retrieve user data from a store.
Definition
authenticationstore.h:22
Cutelyst::AuthenticationUser
Container for user data retrieved from an AuthenticationStore.
Definition
authenticationuser.h:30
Cutelyst::Context
The Cutelyst Context.
Definition
context.h:42
Cutelyst::StoreMinimal
Minimal in memory authentication data store.
Definition
minimal.h:23
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition
group-core-actions.dox:1
QMultiMap
QString
QVariant
QVector
Cutelyst
Plugins
Authentication
minimal.h
Generated on Mon Apr 21 2025 23:25:43 for cutelyst by
1.9.8