]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/auth/basic/Config.h
2 * Copyright (C) 1996-2022 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 __AUTH_BASIC_H__
10 #define __AUTH_BASIC_H__
12 #if HAVE_AUTH_MODULE_BASIC
14 #include "auth/Gadgets.h"
15 #include "auth/SchemeConfig.h"
16 #include "auth/UserRequest.h"
17 #include "helper/forward.h"
24 /** Basic authentication configuration data */
25 class Config
: public Auth::SchemeConfig
29 bool active() const override
;
30 bool configured() const override
;
31 Auth::UserRequest::Pointer
decode(char const *proxy_auth
, const HttpRequest
*request
, const char *requestRealm
) override
;
33 void rotateHelpers() override
;
34 bool dump(StoreEntry
*, const char *, Auth::SchemeConfig
*) const override
;
35 void fixHeader(Auth::UserRequest::Pointer
, HttpReply
*, Http::HdrType
, HttpRequest
*) override
;
36 void init(Auth::SchemeConfig
*) override
;
37 void parse(Auth::SchemeConfig
*, int, char *) override
;
38 void decode(char const *httpAuthHeader
, Auth::UserRequest::Pointer
);
39 void registerWithCacheManager(void) override
;
40 const char * type() const override
;
43 time_t credentialsTTL
;
47 char * decodeCleartext(const char *httpAuthHeader
, const HttpRequest
*request
);
53 extern helper
*basicauthenticators
;
55 #endif /* HAVE_AUTH_MODULE_BASIC */
56 #endif /* __AUTH_BASIC_H__ */