Config.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_SRC_AUTH_CONFIG_H
10#define SQUID_SRC_AUTH_CONFIG_H
11
12#if USE_AUTH
13
14#include "acl/forward.h"
15#include "auth/SchemeConfig.h"
16#include "auth/SchemesConfig.h"
17
18namespace Auth
19{
20
21class Config
22{
23public:
24 Config() = default;
25 Config(Config &&) = delete; // no support for copying of any kind
26 ~Config() = default;
27
30
32 std::vector<Auth::SchemesConfig> schemeLists;
33
36
39
40 // TODO replace this directive with per-Scheme 'credentialsttl'
41 // and make Scheme::expirestime the real time-when-expires.
43 time_t credentialsTtl = 0;
44
46 time_t ipTtl = 0;
47};
48
50
51} // namespace Auth
52
53#endif /* USE_AUTH */
54#endif /* SQUID_SRC_AUTH_CONFIG_H */
55
#define acl_access
Definition: forward.h:45
Auth::ConfigVector schemes
set of auth_params directives
Definition: Config.h:29
Config(Config &&)=delete
time_t credentialsTtl
the authenticate_ttl
Definition: Config.h:43
time_t garbageCollectInterval
the authenticate_cache_garbage_interval
Definition: Config.h:38
acl_access * schemeAccess
the ACL list for auth_schemes directives
Definition: Config.h:35
~Config()=default
Config()=default
time_t ipTtl
the authenticate_ip_ttl
Definition: Config.h:46
std::vector< Auth::SchemesConfig > schemeLists
set of auth_schemes directives
Definition: Config.h:32
HTTP Authentication.
Definition: Config.h:19
std::vector< Auth::SchemeConfig * > ConfigVector
Definition: forward.h:24
Auth::Config TheConfig
Definition: Config.cc:15

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors