source: trunk/gsdl/src/recpt/authenaction.h@ 411

Last change on this file since 411 was 374, checked in by rjmcnab, 25 years ago

Put users in their own gdbm database. Moved a lot of functionality to usersdb

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1/**********************************************************************
2 *
3 * authenaction.h -- authenticating users
4 * Copyright (C) 1999 DigiLib Systems Limited, New Zealand
5 *
6 * PUT COPYRIGHT NOTICE HERE
7 *
8 * $Id: authenaction.h 374 1999-07-13 23:23:26Z rjmcnab $
9 *
10 *********************************************************************/
11
12
13#ifndef AUTHENACTION_H
14#define AUTHENACTION_H
15
16#include "gsdlconf.h"
17#include "action.h"
18#include "text_t.h"
19#include "receptionist.h"
20
21
22// note: you need to tell this action about the receptionist
23// using set_receptionist
24
25class authenaction : public action {
26protected:
27 text_t usersfile;
28 text_t keyfile;
29 int keydecay;
30
31 receptionist *recpt;
32
33public:
34 authenaction ();
35 virtual ~authenaction () {}
36
37 void set_receptionist (receptionist *therecpt) {recpt=therecpt;}
38
39 void configure (const text_t &key, const text_tarray &cfgline);
40 bool init (ostream &logout);
41
42 text_t get_action_name () {return "a";}
43
44 bool check_cgiargs (cgiargsinfoclass &argsinfo, cgiargsclass &args,
45 ostream &logout);
46 bool check_external_cgiargs (cgiargsinfoclass &argsinfo,
47 cgiargsclass &args,
48 outconvertclass &outconvert,
49 const text_t &saveconf,
50 ostream &logout);
51
52 void get_cgihead_info (cgiargsclass &args, response_t &response,
53 text_t &response_data, ostream &logout);
54
55 void define_internal_macros (displayclass &disp, cgiargsclass &args,
56 recptproto *collectproto, ostream &logout);
57 void define_external_macros (displayclass &disp, cgiargsclass &args,
58 recptproto *collectproto, ostream &logout);
59
60 bool do_action (cgiargsclass &args, recptproto *collectproto,
61 displayclass &disp, outconvertclass &outconvert,
62 ostream &textout, ostream &logout);
63};
64
65
66#endif
Note: See TracBrowser for help on using the repository browser.