]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/basic/User.h
b71cc18fdba5fb5896b6f4823bccd1899a4ed91e
2 * Copyright (C) 1996-2020 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_AUTH_BASIC_USER_H
10 #define _SQUID_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 virtual int32_t ttl() const override
;
42 static CbcPointer
<Auth::CredentialsCache
> Cache();
43 virtual void addToNameCache() override
;
50 Auth::UserRequest::Pointer currentRequest
;
56 #endif /* HAVE_AUTH_MODULE_BASIC */
57 #endif /* _SQUID_AUTH_BASIC_USER_H */