cutelyst
3.9.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
Cutelyst
Plugins
Authentication
htpasswd.h
1
/*
2
* SPDX-FileCopyrightText: (C) 2014-2022 Daniel Nicoletti <dantti12@gmail.com>
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
#ifndef AUTHENTICATION_STORE_HTPASSWD_H
6
#define AUTHENTICATION_STORE_HTPASSWD_H
7
8
#include <Cutelyst/Plugins/Authentication/authenticationstore.h>
9
#include <Cutelyst/cutelyst_global.h>
10
11
namespace
Cutelyst
{
12
13
class
CUTELYST_PLUGIN_AUTHENTICATION_EXPORT
StoreHtpasswd
:
public
AuthenticationStore
14
{
15
Q_OBJECT
16
public
:
21
explicit
StoreHtpasswd
(
const
QString
&name,
QObject
*parent =
nullptr
);
22
virtual
~
StoreHtpasswd
()
override
;
23
27
void
addUser(
const
ParamsMultiMap
&user);
28
32
virtual
AuthenticationUser
findUser(
Context
*c,
const
ParamsMultiMap
&userInfo)
final
;
33
37
virtual
QVariant
forSession(
Context
*c,
const
AuthenticationUser
&user)
final
;
38
42
virtual
AuthenticationUser
fromSession(
Context
*c,
const
QVariant
&frozenUser)
final
;
43
44
private
:
45
QString
m_filename;
46
};
47
48
}
// namespace Cutelyst
49
50
#endif // AUTHENTICATION_STORE_HTPASSWD_H
Cutelyst::Context
The Cutelyst Context.
Definition:
context.h:38
Cutelyst::StoreHtpasswd
Definition:
htpasswd.h:13
QObject
Cutelyst::AuthenticationStore
Definition:
authenticationstore.h:13
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
Mainpage.dox:7
QString
Cutelyst::AuthenticationUser
Definition:
authenticationuser.h:18
QMultiMap
QVariant
Generated by
1.8.14