5#ifndef AUTHENTICATIONUSER_H
6#define AUTHENTICATIONUSER_H
8#include <Cutelyst/Plugins/authentication_export.h>
9#include <Cutelyst/paramsmultimap.h>
10#include <Cutelyst/plugin.h>
17class AuthenticationRealm;
62 [[nodiscard]]
bool isNull()
const;
67 [[nodiscard]]
QString authRealm();
72 void setAuthRealm(
const QString &authRealm);
81 [[nodiscard]]
bool checkPassword(
Context *c,
84 const QString &passwordField = QStringLiteral(
"password"));
89 [[nodiscard]]
inline QVariantMap data()
const;
94 inline void setData(
const QVariantMap &data);
131 m_data.insert(key,
value);
136 return m_data.value(key, defaultValue);
145QDebug CUTELYST_PLUGIN_AUTHENTICATION_EXPORT operator<<(
QDebug dbg,
Combines user store and credential validation into a named realm.
Container for user data retrieved from an AuthenticationStore.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
void setData(const QVariantMap &data)
void insert(const QString &key, const QVariant &value)
The Cutelyst namespace holds all public Cutelyst API.
QVariant fromValue(T &&value)