User.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef _SQUID_AUTH_BASIC_USER_H
10#define _SQUID_AUTH_BASIC_USER_H
11
12#if HAVE_AUTH_MODULE_BASIC
13
14#include "auth/User.h"
15#include "auth/UserRequest.h"
16
17namespace Auth
18{
19
20class SchemeConfig;
21class QueueNode;
22
23namespace Basic
24{
25
27class User : public Auth::User
28{
29 MEMPROXY_CLASS(Auth::Basic::User);
30
31public:
32 User(Auth::SchemeConfig *, const char *requestRealm);
33 ~User() override;
34 bool authenticated() const;
35 bool valid() const;
36
38 void updateCached(User *from);
39 int32_t ttl() const override;
40
41 /* Auth::User API */
43 void addToNameCache() override;
44
45 char *passwd;
46
47 QueueNode *queue;
48
49private:
50 Auth::UserRequest::Pointer currentRequest;
51};
52
53} // namespace Basic
54} // namespace Auth
55
56#endif /* HAVE_AUTH_MODULE_BASIC */
57#endif /* _SQUID_AUTH_BASIC_USER_H */
58
#define MEMPROXY_CLASS(CLASS)
HTTP Authentication.
Definition: Config.h:19
struct _Cache Cache

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors