Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages  

Authentication


Functions

int macs_apxs_expose_auc (char *uid, request_rec *r, macs_apxs_cfg *c)
 Exposes session information.

char * macs_apxs_get_skey (request_rec *r, macs_apxs_cfg *c)
 Returns the skey.

int macs_apxs_tolia (request_rec *r, macs_apxs_cfg *c)
 Redirect to the LIA.

int macs_apxs_authenticate (request_rec *)
 Protects secure URIs.


Detailed Description

These routines perform the authentication functions.

Function Documentation

int macs_apxs_expose_auc char *    uid,
request_rec *    r,
macs_apxs_cfg   c
 

Exposes session information.

Makes uid, skey and other session information available to other phases of the request, including CGI and other modules.

char* macs_apxs_get_skey request_rec *    r,
macs_apxs_cfg   c
 

Returns the skey.

Looks through the request for the session key cookie, and returns its value.

int macs_apxs_tolia request_rec *    r,
macs_apxs_cfg   c
 

Redirect to the LIA.

Performs a temporary redirection to the Login Agent. Sets request parameters for return to the requested URL after authentication.

Todo:
we need some better way of figuring out the scheme

int macs_apxs_authenticate request_rec *    r
 

Protects secure URIs.

This routine is called during the authentication phase.

Skips subrequests, since the main request would have passed or failed. If uri is not secure, auth's and exposes anyway, ignoring errors there. If secure, put key=uidhdr/val="y" in the r->notes table to let others know; auth & expose, redirecting to lia in case of error/failure.

Returns:
If url is not secure, return DECLINED. If no valid skey cookie was sent, redirect to LIA. If libaus validates skey, return OK. Otherwise redirect to LIA


Generated on Tue Oct 8 22:15:54 2002 for MACS Apache Client Module by doxygen1.2.16