Re: [PHPLIB] 7.2 and pre-auth From: Chad Cunningham (ccunning <email protected>)
Date: 10/31/99

Basically, you just put a function in your auth subclass in local.inc. It can
do whatever it needs to authenticate users and should return a uid if
authenticated or false if not. The usage is if you have some external data
coming in to authenticate users, such as a form on a main page submitted to a
protected page. Your preauth function then can grab that data and attemp to
authenticate the person without the loginform being displayed. In my case, I
use this because my users are authenticated via a custom apache module that
redirects the user to log in via a university system. So, preauth allows me
to just return their userid that is sent along in the http headers, thus
saving us the trouble of having to keep our own user database for phplib. Of
course, I would not advise authenicating users via telepathy as the manual
suggests :)

Gregory Blake wrote:

> I just noticed that auth_preauth is in 7.2. How exactly does this work?
> Have many people worked with it?
>
> Thanks
> gregory
>
> --
> P Gregory Blake | "And the circle grows stronger..." P
> L Peace * Love * Unity * Respect L
> U email: gblake <email protected> | url: http://plur.ne.mediaone.net/ U
> R AOL IM: ImSnooze | ICQ# 1367921 R
>
> -
> PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
> To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
> the body, not the subject, of your message.

-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.