Barracuda Application Server C/C++ Reference
NO
AuthenticatedUser.h
1/*
2 * ____ _________ __ _
3 * / __ \___ ____ _/ /_ __(_)___ ___ ___ / / ____ ____ _(_)____
4 * / /_/ / _ \/ __ `/ / / / / / __ `__ \/ _ \/ / / __ \/ __ `/ / ___/
5 * / _, _/ __/ /_/ / / / / / / / / / / / __/ /___/ /_/ / /_/ / / /__
6 * /_/ |_|\___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_____/\____/\__, /_/\___/
7 * /____/
8 *
9 * Barracuda Embedded Web-Server
10 *
11 ****************************************************************************
12 * HEADER
13 *
14 * $Id: AuthenticatedUser.h 5394 2023-02-21 18:41:44Z wini $
15 *
16 * COPYRIGHT: Real Time Logic LLC, 2006 - 2023
17 *
18 * This software is copyrighted by and is the sole property of Real
19 * Time Logic LLC. All rights, title, ownership, or other interests in
20 * the software remain the property of Real Time Logic LLC. This
21 * software may only be used in accordance with the terms and
22 * conditions stipulated in the corresponding license agreement under
23 * which the software has been supplied. Any unauthorized use,
24 * duplication, transmission, distribution, or disclosure of this
25 * software is expressly forbidden.
26 *
27 * This Copyright notice may not be removed or modified without prior
28 * written consent of Real Time Logic LLC.
29 *
30 * Real Time Logic LLC. reserves the right to modify this software
31 * without notice.
32 *
33 * http://www.realtimelogic.com
34 ****************************************************************************
35 *
36 *
37 */
38#ifndef __AuthenticatedUser_h
39#define __AuthenticatedUser_h
40
41#include <HttpServer.h>
42#include <BaServerLib.h>
43#include <DoubleList.h>
44#include <SplayTree.h>
45
46#ifndef __DOXYGEN__
48struct UserIntf;
49struct AuthorizerIntf;
51struct LoginRespIntf;
52struct LoginTracker;
53struct LoginTrackerIntf;
54struct LoginTrackerNode;
55struct AuthInfo;
56#endif
57
58
59#ifdef __cplusplus
60extern "C" {
61#endif
62extern const char BasicAuthUser_derivedType[];
63extern const char DigestAuthUser_derivedType[];
64extern const char FormAuthUser_derivedType[];
65#ifdef __cplusplus
66}
67#endif
68
69
82typedef enum {
83 AuthenticatedUserType_Unknown,
84 AuthenticatedUserType_Digest,
85 AuthenticatedUserType_Basic,
86 AuthenticatedUserType_Form
88
89
102typedef BaBool (*AuthorizerIntf_Authorize)(
103 struct AuthorizerIntf* intf,
104 struct AuthenticatedUser* user,
105 HttpMethod httpMethod,
106 const char* path);
107
111typedef struct AuthorizerIntf
112{
113#ifdef __cplusplus
115
120
127 bool authorize(struct AuthenticatedUser* user,
128 HttpMethod method,
129 const char* path);
130#endif
131 AuthorizerIntf_Authorize authorizeFP;
133
134#define AuthorizerIntf_constructor(o, authorize) (o)->authorizeFP=authorize
135#define AuthorizerIntf_authorize(o, user, method, path) \
136 (o)->authorizeFP(o, user, method, path)
137
138#ifdef __cplusplus
139inline
140AuthorizerIntf::AuthorizerIntf(AuthorizerIntf_Authorize authorize) {
141 AuthorizerIntf_constructor(this,authorize); }
142inline bool
144 HttpMethod method,
145 const char* path) {
146 return AuthorizerIntf_authorize(this,user,method,path) ? true : false; }
147#endif
148
149
168typedef void (*UserIntf_GetPwd)(struct UserIntf* intf,struct AuthInfo* info);
169
173typedef struct UserIntf
174{
175#ifdef __cplusplus
176
177 UserIntf() {}
178
183
184#endif
185 UserIntf_GetPwd getPwdFp;
187
188#ifdef __cplusplus
189extern "C" {
190#endif
191
192#define UserIntf_constructor(o, getPwd) (o)->getPwdFp = getPwd
193
194#define UserIntf_getPwd(o, username) (o)->getPwdFp(o, username)
195#ifdef __cplusplus
196}
197inline UserIntf::UserIntf(
198 UserIntf_GetPwd getPwd) {
199 UserIntf_constructor(this, getPwd);
200}
201#endif
202
203
204#ifndef __DOXYGEN__
205typedef struct AuthUserList
206{
207#ifdef __cplusplus
208#endif
209 SplayTreeNode super; /* inherits from SplayTreeNode */
210 DoubleList list; /* List of AuthenticatedUser objects */
211 struct UserIntf* userDb;
212 HttpServer* server;
213 char* username;
214 char* password;
215 int listLen; /* Number of objects in 'list' */
216} AuthUserList;
217#endif
218
219BA_API int AuthUserList_createOrCheck(struct AuthInfo* info,
220 UserIntf* userDb,
221 void** ptr,
222 size_t size);
223
224
225typedef DoubleListEnumerator AuthUserListEnumerator;
226#define AuthUserListEnumerator_constructor(e, o) \
227 DoubleListEnumerator_constructor(e, &(o)->list)
228BA_API struct AuthenticatedUser*
229AuthUserListEnumerator_getElement(DoubleListEnumerator* o);
230BA_API struct AuthenticatedUser*
231AuthUserListEnumerator_nextElement(DoubleListEnumerator* o);
232void AuthUserList_termIfEmpty(AuthUserList* o);
233
234
235
242typedef struct AuthenticatedUser
243{
244#ifdef __cplusplus
245
257 static AuthenticatedUser* get(HttpRequest* request);
258
259
272 static AuthenticatedUser* get(HttpSession* session);
273
279
282 const char* getPassword();
283
286 const char* getName();
287
315 void logout(bool all=false);
316
322
326#endif
327 HttpSessionAttribute superClass; /*as if inherited */
328 DoubleLink dlink; /* In AuthUserList */
329 AuthUserList* authUserList;
330 const char* derivedType; /* Used for dynamic cast */
332
333#ifdef __cplusplus
334extern "C" {
335#endif
336
337BA_API void
338AuthenticatedUser_constructor(AuthenticatedUser* o,
339 const char* derivedType,
340 AuthUserList* list,
342BA_API void AuthenticatedUser_destructor(AuthenticatedUser* o);
343BA_API AuthenticatedUser* AuthenticatedUser_get1(HttpRequest* request);
344BA_API AuthenticatedUser* AuthenticatedUser_get2(HttpSession* session);
345#define AuthenticatedUser_getName(o) \
346 ((o) && (o)->authUserList && (o)->authUserList->username ? \
347 (o)->authUserList->username : 0)
348#define AuthenticatedUser_getDerivedType(o) (o)->derivedType
349#define AuthenticatedUser_getSession(o) \
350 HttpSessionAttribute_getSession((HttpSessionAttribute*)o)
351#define AuthenticatedUser_getPassword(o) \
352 ((o) && (o)->authUserList && (o)->authUserList->password ? \
353 (o)->authUserList->password : 0)
354BA_API void AuthenticatedUser_logout(AuthenticatedUser* o, BaBool all);
355BA_API AuthenticatedUserType AuthenticatedUser_getType(AuthenticatedUser* o);
356BA_API AuthenticatedUser* AuthenticatedUser_getAnonymous(void);
357#ifdef __cplusplus
358}
360 return AuthenticatedUser_get1(request); }
362 return AuthenticatedUser_get2(session); }
363inline const char* AuthenticatedUser::getName() {
364 return AuthenticatedUser_getName(this); }
366 return AuthenticatedUser_getSession(this); }
367inline const char* AuthenticatedUser::getPassword() {
368 return AuthenticatedUser_getPassword(this); }
369inline void AuthenticatedUser::logout(bool all) {
370 AuthenticatedUser_logout(this, all ? TRUE : FALSE); }
372 return AuthenticatedUser_getType(this); }
374 return AuthenticatedUser_getAnonymous(); }
375#endif
376
385typedef AuthenticatedUser* (*AuthenticatorIntf_Authenticate)(
386 struct AuthenticatorIntf* super,
387 const char* relPath,
388 HttpCommand* cmd);
389
390
394typedef struct AuthenticatorIntf
395{
396#ifdef __cplusplus
397 /*Only to be used as default constructor when sub-classing with C code*/
399
404
409 AuthenticatedUser* authenticate(const char* relPath, HttpCommand* cmd);
410#endif
411 AuthenticatorIntf_Authenticate authenticateCB;
413
414#ifdef __cplusplus
415extern "C" {
416#endif
417
418#define AuthenticatorIntf_authenticate(o, relPath, cmd) \
419 (o)->authenticateCB(o, relPath, cmd)
420
421BA_API void AuthenticatorIntf_constructor(
423 AuthenticatorIntf_Authenticate authenticate);
424#ifdef __cplusplus
425}
426inline AuthenticatorIntf::AuthenticatorIntf(
427 AuthenticatorIntf_Authenticate authenticate) {
428 AuthenticatorIntf_constructor(this,authenticate);
429}
431 const char* relPath, HttpCommand* cmd) {
432 return AuthenticatorIntf_authenticate(this, relPath, cmd);
433}
434#endif
435
436
448typedef void (*LoginRespIntf_Service)(struct LoginRespIntf* intf,
449 struct AuthInfo* info);
450
459typedef struct LoginRespIntf
460{
461#ifdef __cplusplus
462 LoginRespIntf() {}
467#endif
468 LoginRespIntf_Service serviceFp;
470
471#define LoginRespIntf_constructor(o, service) (o)->serviceFp=service
472#ifdef __cplusplus
473inline LoginRespIntf::LoginRespIntf(LoginRespIntf_Service service) {
474 LoginRespIntf_constructor(this, service); }
475#endif
476
477
481typedef enum {
492
498
499
504typedef struct AuthInfo
505{
508
511
513 const char* username;
514
516 const char* upwd;
517
521
529
537
541 void* userObj;
542
543 AuthUserList* authUserList;
544
554
555 U32 seed;
556 U32 seedKey;
557
563
568
572 BaBool denied;
573
580 BaBool recycle;
581
592 U8 password[100];
594
595#define AuthInfo_constructor(o, trackerMA, cmdMA, typeMA) do {\
596 memset(o, 0, sizeof(AuthInfo));\
597 (o)->tracker=trackerMA;\
598 (o)->cmd=cmdMA;\
599 (o)->type=typeMA;\
600 (o)->maxUsers=3;\
601 (o)->ct=AuthInfoCT_Password;\
602 (o)->password[0]=0;\
603} while(0)
604
614 struct LoginTrackerIntf* o,
615 AuthInfo* info,
616 struct LoginTrackerNode* node);
617
618
628 struct LoginTrackerIntf* o,
629 AuthInfo* info,
630 struct LoginTrackerNode* node);
631
645 struct LoginTrackerIntf* o,
646 AuthInfo* info,
647 struct LoginTrackerNode* node);
648
656 struct LoginTrackerIntf* o,
657 struct LoginTrackerNode* node);
658
659
664typedef struct LoginTrackerIntf
665{
666#ifdef __cplusplus
676 LoginTrackerIntf_TerminateNode terminateNode);
677#endif
681 LoginTrackerIntf_TerminateNode terminateNode;
683
684#define LoginTrackerIntf_constructor(\
685 o, validateMA, loginMA, loginFailedMA, terminateNodeMA) do {\
686 (o)->validate=validateMA;\
687 (o)->login=loginMA;\
688 (o)->loginFailed=loginFailedMA;\
689 (o)->terminateNode=terminateNodeMA;\
690} while(0)
691#define LoginTrackerIntf_validate(o, request, node) \
692 (o)->validate(o, request, node)
693#define LoginTrackerIntf_login(o, request, user) \
694 (o)->login(o, request, user)
695#define LoginTrackerIntf_loginFailed(o, node, loginName) \
696 (o)->loginFailed(o, node, loginName)
697#define LoginTrackerIntf_terminateNode(o, node) \
698 (o)->terminateNode(o, node)
699
700#ifdef __cplusplus
705 LoginTrackerIntf_TerminateNode terminateNode) {
706 LoginTrackerIntf_constructor(this,validate,login,loginFailed,terminateNode);
707}
708#endif
709
710
715typedef struct LoginTrackerNode
716{
717#ifdef __cplusplus
720 U32 getCounter();
721
724 U32 getAuxCounter();
725
728 void setAuxCounter(U32 count);
729
732 HttpSockaddr* getAddr();
733
736 void setUserData(void* data);
737
740 void* getUserData();
741
744 BaTime getTime();
745#endif
746 SplayTreeNode super;
747 DoubleLink dlink;
748 HttpSockaddr addr;
749 void* userData;
750 BaTime t;
751 U32 loginCounter;
752 U32 auxCounter;
754
755#define LoginTrackerNode_getCounter(o) (o)->loginCounter
756#define LoginTrackerNode_getAuxCounter(o) (o)->auxCounter
757#define LoginTrackerNode_setAuxCounter(o, count) (o)->auxCounter=count
758#define LoginTrackerNode_getAddr(o) (&(o)->addr)
759#define LoginTrackerNode_setUserData(o, data) (o)->userData=data
760#define LoginTrackerNode_getUserData(o) (o)->userData
761#define LoginTrackerNode_getTime(o) (o)->t
762
763#ifdef __cplusplus
765 return LoginTrackerNode_getCounter(this);
766}
768 return LoginTrackerNode_getAuxCounter(this);
769}
770
771inline void LoginTrackerNode::setAuxCounter(U32 count) {
772 LoginTrackerNode_setAuxCounter(this, count);
773}
774
775inline HttpSockaddr* LoginTrackerNode::getAddr() {
776 return LoginTrackerNode_getAddr(this);
777}
778inline void LoginTrackerNode::setUserData(void* data) {
779 LoginTrackerNode_setUserData(this, data);
780}
782 return LoginTrackerNode_getUserData(this);
783}
785 return LoginTrackerNode_getTime(this);
786}
787#endif
788
811typedef struct LoginTracker
812{
813#ifdef __cplusplus
820 LoginTracker(U32 noOfLoginTrackerNodes,
821 LoginTrackerIntf* intf,
823
826 void clearCache();
827
831
836
844#endif
845 SplayTree tree;
846 DoubleList dInUseList;
847 DoubleList dFreeList;
848 LoginTrackerIntf* loginTrackerIntf;
849 U32 cursor;
850 U32 noOfLoginTrackerNodes;
851 LoginTrackerNode* nodes;
853
854
855#ifdef __cplusplus
856extern "C" {
857#endif
858BA_API void LoginTracker_constructor(LoginTracker* o,
859 U32 noOfLoginTrackerNodes,
860 LoginTrackerIntf* intf,
861 AllocatorIntf* allocator);
862BA_API void LoginTracker_destructor(LoginTracker* o);
863BA_API void LoginTracker_clearCache(LoginTracker* o);
864BA_API LoginTrackerNode* LoginTracker_getFirstNode(LoginTracker* o);
865BA_API LoginTrackerNode* LoginTracker_getNextNode(
867BA_API LoginTrackerNode* LoginTracker_find(LoginTracker*o, HttpRequest* req);
868BA_API void LoginTracker_loginFailed(
869 LoginTracker* o, AuthInfo* info);
870BA_API BaBool LoginTracker_validate(LoginTracker* o, AuthInfo* info);
871BA_API void LoginTracker_login(LoginTracker* o, AuthInfo* info);
872#ifdef __cplusplus
873}
874inline LoginTracker::LoginTracker(U32 noOfLoginTrackerNodes,
875 LoginTrackerIntf* intf,
876 AllocatorIntf* allocator) {
877 LoginTracker_constructor(this, noOfLoginTrackerNodes, intf, allocator);
878}
880 LoginTracker_clearCache(this);
881}
883 return LoginTracker_getFirstNode(this);
884}
886 return LoginTracker_getNextNode(this,n);
887}
889 return LoginTracker_find(this,request);
890}
891#endif
892
893 /* end of Authentication */
895
896/* Internal func */
897void calculateHA1Hex(
898 const char* realm, const char* uname, const char* pwd, U8 hexbuf[33]);
899
900#endif
struct UserIntf UserIntf
Interface class used by the Authentication classes.
AuthInfoCT
AuthInfo Credential Type can optionally be used by the UserIntf_GetPwd callback function.
Definition: AuthenticatedUser.h:481
LoginTrackerNode * find(HttpRequest *request)
Find LoginTrackerNode in cache by using the IP address from the request object.
Definition: AuthenticatedUser.h:888
HttpSession * getSession()
Get the session object.
Definition: AuthenticatedUser.h:365
static AuthenticatedUser * getAnonymous()
non public
Definition: AuthenticatedUser.h:373
bool authorize(struct AuthenticatedUser *user, HttpMethod method, const char *path)
Returns TRUE if user is authorized.
Definition: AuthenticatedUser.h:143
const char * getPassword()
Returns the user's password.
Definition: AuthenticatedUser.h:367
AuthenticatedUser *(* AuthenticatorIntf_Authenticate)(struct AuthenticatorIntf *super, const char *relPath, HttpCommand *cmd)
The authenticator callback method for the abstract class AuthenticatorIntf.
Definition: AuthenticatedUser.h:385
U32 getCounter()
Returns the number of login attempts.
Definition: AuthenticatedUser.h:764
LoginTrackerIntf(LoginTrackerIntf_Validate validate, LoginTrackerIntf_Login login, LoginTrackerIntf_LoginFailed loginFailed, LoginTrackerIntf_TerminateNode terminateNode)
Create a LoginTrackerIntf.
Definition: AuthenticatedUser.h:701
void(* LoginTrackerIntf_Login)(struct LoginTrackerIntf *o, AuthInfo *info, struct LoginTrackerNode *node)
Prototype for the Login tracker method.
Definition: AuthenticatedUser.h:627
BaTime getTime()
Returns the time for the latest login attempt.
Definition: AuthenticatedUser.h:784
struct AuthorizerIntf AuthorizerIntf
An abstract class, which you must implement, provides a method of authorizing an authenticated user.
LoginTrackerNode * getNextNode(LoginTrackerNode *n)
Return the next LoginTrackerNode in the cache or NULL if no more nodes.
Definition: AuthenticatedUser.h:885
void * getUserData()
Fetch stored application data in this node.
Definition: AuthenticatedUser.h:781
AuthenticatedUserType getType()
Returns the authenticator type that was used to authenticate this user.
Definition: AuthenticatedUser.h:371
struct AuthenticatorIntf AuthenticatorIntf
Abstract interface class implemented by DigestAuthenticator, FormAuthenticator and DigestAuthenticato...
BaBool(* LoginTrackerIntf_Validate)(struct LoginTrackerIntf *o, AuthInfo *info, struct LoginTrackerNode *node)
Prototype for the validate callback method.
Definition: AuthenticatedUser.h:613
AuthenticatedUser * authenticate(const char *relPath, HttpCommand *cmd)
Authenticate the user.
Definition: AuthenticatedUser.h:430
struct LoginTrackerNode LoginTrackerNode
A LoginTrackerNode keeps track of how many times a user using a specific IP address has attempted to ...
const char * getName()
Returns the user's name.
Definition: AuthenticatedUser.h:363
LoginTrackerNode * getFirstNode()
Return first LoginTrackerNode in the cache or NULL if cache empty.
Definition: AuthenticatedUser.h:882
AuthenticatedUserType
The authenticator types.
Definition: AuthenticatedUser.h:82
struct LoginRespIntf LoginRespIntf
The LoginRespIntf is an abstract class, which must be implemented when using one of DigestAuthenticat...
void logout(bool all=false)
Logout user and terminate the session object.
Definition: AuthenticatedUser.h:369
struct LoginTrackerIntf LoginTrackerIntf
The interface between the LoginTracker and the application code.
void(* LoginRespIntf_Service)(struct LoginRespIntf *intf, struct AuthInfo *info)
This callback function is called if the user failed to authenticate with one of DigestAuthenticator,...
Definition: AuthenticatedUser.h:448
void(* UserIntf_GetPwd)(struct UserIntf *intf, struct AuthInfo *info)
The GetPwd callback function searches for info->username and sets AuthInfo::password if found and/or ...
Definition: AuthenticatedUser.h:168
static AuthenticatedUser * get(HttpRequest *request)
Returns a pointer to an instance of class AuthenticatedUser if a session object exists and if the use...
Definition: AuthenticatedUser.h:359
void setUserData(void *data)
Store application data in this node.
Definition: AuthenticatedUser.h:778
void clearCache()
Clear the LoginTrackerNode cache.
Definition: AuthenticatedUser.h:879
struct LoginTracker LoginTracker
The LoginTracker class is an optional security enhancement that can be installed in an instance of on...
void(* LoginTrackerIntf_LoginFailed)(struct LoginTrackerIntf *o, AuthInfo *info, struct LoginTrackerNode *node)
Prototype for the LoginFailed callback method.
Definition: AuthenticatedUser.h:644
U32 getAuxCounter()
Get auxiliary counter.
Definition: AuthenticatedUser.h:767
struct AuthInfo AuthInfo
An instance of the AuthInfo struct is created on the stack in the Barracuda authenticators and is use...
HttpSockaddr * getAddr()
Return the HttpSockaddr.
Definition: AuthenticatedUser.h:775
BaBool(* AuthorizerIntf_Authorize)(struct AuthorizerIntf *intf, struct AuthenticatedUser *user, HttpMethod httpMethod, const char *path)
Prototype for the Authorize callback method.
Definition: AuthenticatedUser.h:102
struct AuthenticatedUser AuthenticatedUser
Abstract base class implemented by BasicAuthUser, FormAuthUser and DigestAuthUser.
void(* LoginTrackerIntf_TerminateNode)(struct LoginTrackerIntf *o, struct LoginTrackerNode *node)
Prototype for the TerminateNode callback method.
Definition: AuthenticatedUser.h:655
void setAuxCounter(U32 count)
Set auxiliary counter.
Definition: AuthenticatedUser.h:771
LoginTracker(U32 noOfLoginTrackerNodes, LoginTrackerIntf *intf, AllocatorIntf *allocator=AllocatorIntf::getDefault())
Create a LoginTracker instance.
Definition: AuthenticatedUser.h:874
@ AuthInfoCT_Invalid
Set when getpwd callback failed comparing AuthInfo::upwd with stored password.
Definition: AuthenticatedUser.h:496
@ AuthInfoCT_Valid
Set when getpwd callback successfully compared AuthInfo::upwd with stored password.
Definition: AuthenticatedUser.h:491
@ AuthInfoCT_HA1
The password is returned as a HA1 hash, which is: MD5(username ":" realm ":" password)
Definition: AuthenticatedUser.h:487
@ AuthInfoCT_Password
The default.
Definition: AuthenticatedUser.h:483
void(* HttpSessionAttribute_Destructor)(struct HttpSessionAttribute *o)
HttpSessionAttribute termination callback function.
Definition: HttpServer.h:1881
HttpMethod
HTTP method types.
Definition: HttpServer.h:772
S64 BaTime
An arithmetic type representing calendar time with epoch of 1970-01-01 00:00:10 GMT – i....
Definition: GenPrimT.h:93
Memory allocation and deallocation Interface class.
Definition: AllocatorIntf.h:83
static AllocatorIntf * getDefault(void)
Returns a pointer to a predefined AllocatorIntf class.
Definition: AllocatorIntf.h:156
An instance of the AuthInfo struct is created on the stack in the Barracuda authenticators and is use...
Definition: AuthenticatedUser.h:505
const char * username
The user name if the client sends login information.
Definition: AuthenticatedUser.h:513
const char * upwd
The password provided by the user, if any.
Definition: AuthenticatedUser.h:516
AuthInfoCT ct
The ct parameter can optionally be set by the UserIntf_GetPwd function.
Definition: AuthenticatedUser.h:536
BaBool recycle
Force another client to log out.
Definition: AuthenticatedUser.h:580
int maxUsers
Max number of concurrent logins for this user.
Definition: AuthenticatedUser.h:562
struct LoginTracker * tracker
The tracker object if any.
Definition: AuthenticatedUser.h:507
U8 password[100]
Must be set by UserIntf_GetPwd if the user is found.
Definition: AuthenticatedUser.h:592
BaTime maxInactiveInterval
This variable specifies the time, in seconds, between client requests before the user is automaticall...
Definition: AuthenticatedUser.h:553
HttpCommand * cmd
The request/response container object.
Definition: AuthenticatedUser.h:510
AuthenticatedUser * user
The authenticated user object if the user is authenticated.
Definition: AuthenticatedUser.h:520
int loginAttempts
Shows the number of login attempts if the LoginTracker is active.
Definition: AuthenticatedUser.h:567
BaBool denied
Flag set if the user is denied access by the LoginTracker.
Definition: AuthenticatedUser.h:572
void * userObj
An object that can be set by the callbacks for exchanging information.
Definition: AuthenticatedUser.h:541
AuthenticatedUserType type
The AuthenticatedUser type.
Definition: AuthenticatedUser.h:528
Abstract base class implemented by BasicAuthUser, FormAuthUser and DigestAuthUser.
Definition: AuthenticatedUser.h:243
Abstract interface class implemented by DigestAuthenticator, FormAuthenticator and DigestAuthenticato...
Definition: AuthenticatedUser.h:395
An abstract class, which you must implement, provides a method of authorizing an authenticated user.
Definition: AuthenticatedUser.h:112
The HttpCommand class is a container class for the HttpRequest and HttpResponse command pair.
Definition: HttpServer.h:1818
The HttpServer creates an HttpRequest object when the HttpServer parses a client request.
Definition: HttpServer.h:808
The Web Server.
Definition: HttpServer.h:2864
The interface to an HttpSession attribute.
Definition: HttpServer.h:1912
Provides a way to identify a user across more than one page request or visit to a web site,...
Definition: HttpServer.h:1959
The LoginRespIntf is an abstract class, which must be implemented when using one of DigestAuthenticat...
Definition: AuthenticatedUser.h:460
The interface between the LoginTracker and the application code.
Definition: AuthenticatedUser.h:665
A LoginTrackerNode keeps track of how many times a user using a specific IP address has attempted to ...
Definition: AuthenticatedUser.h:716
The LoginTracker class is an optional security enhancement that can be installed in an instance of on...
Definition: AuthenticatedUser.h:812
Interface class used by the Authentication classes.
Definition: AuthenticatedUser.h:174