]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/basic/User.h
9f4fdd9d8b8770f8bf454c9bdfa51d6f1ca53f49
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_SRC_AUTH_BASIC_USER_H
10 #define SQUID_SRC_AUTH_BASIC_USER_H
12 #if HAVE_AUTH_MODULE_BASIC
14 #include "auth/User.h"
15 #include "auth/UserRequest.h"
26 /** User credentials for the Basic authentication protocol */
27 class User
: public Auth::User
29 MEMPROXY_CLASS(Auth::Basic::User
);
32 User(Auth::SchemeConfig
*, const char *requestRealm
);
34 bool authenticated() const;
37 /** Update the cached password for a username. */
38 void updateCached(User
*from
);
39 int32_t ttl() const override
;
42 static CbcPointer
<Auth::CredentialsCache
> Cache();
43 void addToNameCache() override
;
50 Auth::UserRequest::Pointer currentRequest
;
56 #endif /* HAVE_AUTH_MODULE_BASIC */
57 #endif /* SQUID_SRC_AUTH_BASIC_USER_H */