23#ifndef QHTTPENGINE_BASICAUTHMIDDLEWARE_H
24#define QHTTPENGINE_BASICAUTHMIDDLEWARE_H
26#include <qhttpengine/middleware.h>
28#include "qhttpengine_export.h"
33class QHTTPENGINE_EXPORT BasicAuthMiddlewarePrivate;
63 void add(
const QString &username,
const QString &password);
78 virtual bool verify(
const QString &username,
const QString &password);
82 BasicAuthMiddlewarePrivate *
const d;
BasicAuthMiddleware(const QString &realm, QObject *parent=Q_NULLPTR)
Base constructor for the middleware.
virtual bool process(Socket *socket)
Process the request.
virtual bool verify(const QString &username, const QString &password)
Determine if the client is authorized.
void add(const QString &username, const QString &password)
Add credentials to the list.
Middleware(QObject *parent=Q_NULLPTR)
Base constructor for middleware.
Definition middleware.h:50
Implementation of the HTTP protocol.
Definition socket.h:97