cutelyst
5.0.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
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
9
namespace
Cutelyst
{
10
20
class
CUTELYST_PLUGIN_AUTHENTICATION_EXPORT
StoreHtpasswd
:
public
AuthenticationStore
21
{
22
public
:
26
explicit
StoreHtpasswd
(
const
QString
&name);
27
31
virtual
~StoreHtpasswd
()
override
;
32
36
void
addUser(
const
ParamsMultiMap
&user);
37
41
AuthenticationUser
findUser(
Context
*c,
const
ParamsMultiMap
&userInfo)
override
final
;
42
46
QVariant
forSession(
Context
*c,
const
AuthenticationUser
&user)
override
final
;
47
51
AuthenticationUser
fromSession(
Context
*c,
const
QVariant
&frozenUser)
override
final
;
52
53
private
:
54
QString
m_filename;
55
};
56
57
}
// namespace Cutelyst
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::StoreHtpasswd
Authentication data store using a flat file.
Definition
htpasswd.h:21
Cutelyst
The Cutelyst namespace holds all public Cutelyst API.
Definition
group-core-actions.dox:1
QMultiMap
QString
QVariant
Cutelyst
Plugins
Authentication
htpasswd.h
Generated on Mon Apr 21 2025 23:25:43 for cutelyst by
1.9.8