shibboleth-dev - Proposed (draft) Webserver API
Subject: Shibboleth Developers
List archive
- From: Derek Atkins <>
- To:
- Subject: Proposed (draft) Webserver API
- Date: Wed, 01 Dec 2004 17:27:50 -0500
Hi,
I've been trying to find some common ground between the ISAPI and
Apache modules such that we could move the majority of the
implementation into the shib-target library. I'm sure I'm missing
some APIs to get/set state between the processing calls (ala the
apache calls to change the AuthType or make sure the post isn't
processed multiple times).
Enclosed is the draft API. Scott (et al) could you let me know
what you think? What am I missing? Good? Bad? Indifferent?
Thanks,
-derek
APIs needed:
class ShibRequestParams {
public:
ShibRequestParams() {}
~ShibRequestParams() {}
String url;
String method;
String content_type;
String remote_addr;
int total_bytes;
};
class ShibWSCallbacks {
public:
virtual ~ShibWSCallbacks() {}
enum ShibLogLevel {
LogLevelDebug,
LogLevelInfo,
LogLevelWarn,
LogLevelError
};
// Send a message to the Webserver log
virtual void log(ShibLogLevel level, String msg) = 0;
// Get/Set cookie for this connection
virtual String getCookie(String name) = 0;
virtual String setCookie(String name, String value) = 0;
// Get the request parameters
virtual const ShibRequestParams getRequestParams(void) = 0;
// Get the request POST data
virtual String getPostData(void) = 0;
// Finish the shib session with an error or redirect.
virtual void* sendErrorPage(String msg) = 0;
virtual void* sendRedirect(String url) = 0;
static void* doCheckAuthN(ShibWSCallbacks &cbs);
static void* doCheckAuthZ(ShibWSCallbacks &cbs);
static void* doHandlePOST(ShibWSCallbacks &cbs);
};
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
PGP key available
- Proposed (draft) Webserver API, Derek Atkins, 12/01/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/01/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/01/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/01/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/02/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/02/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/02/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/02/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/02/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/02/2004
- Re: Proposed (draft) Webserver API, Steven_Carmody, 12/06/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/02/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/02/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/02/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/01/2004
- Re: Proposed (draft) Webserver API, Derek Atkins, 12/01/2004
- RE: Proposed (draft) Webserver API, Scott Cantor, 12/01/2004
Archive powered by MHonArc 2.6.16.