cutelyst
4.0.0
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-2023 Daniel Nicoletti <dantti12@gmail.com>
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
#pragma once
6
7
#include <Cutelyst/Plugins/Authentication/authenticationstore.h>
8
#include <Cutelyst/cutelyst_global.h>
9
10
namespace
Cutelyst
{
11
12
class
CUTELYST_PLUGIN_AUTHENTICATION_EXPORT
StoreHtpasswd
:
public
AuthenticationStore
13
{
14
public
:
19
StoreHtpasswd
(
const
QString &name);
20
virtual
~StoreHtpasswd
()
override
;
21
25
void
addUser(
const
ParamsMultiMap
&user);
26
30
AuthenticationUser
findUser(
Context
*c,
const
ParamsMultiMap
&userInfo)
override
final
;
31
35
QVariant forSession(
Context
*c,
const
AuthenticationUser
&user)
override
final
;
36
40
AuthenticationUser
fromSession(
Context
*c,
const
QVariant &frozenUser)
override
final
;
41
42
private
:
43
QString m_filename;
44
};
45
46
}
// namespace Cutelyst
Cutelyst::AuthenticationStore
Definition:
authenticationstore.h:13
Cutelyst::AuthenticationUser
Definition:
authenticationuser.h:19
Cutelyst::Context
The Cutelyst Context.
Definition:
context.h:38
Cutelyst::StoreHtpasswd
Definition:
htpasswd.h:13
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition:
Mainpage.dox:8
Cutelyst::ParamsMultiMap
QMultiMap< QString, QString > ParamsMultiMap
Definition:
paramsmultimap.h:22
Generated by
1.9.5