Re: Sugestions for auth
| From: | Yavor Shahpasov | Date: | Sun, 03 Nov 2002 18:06:42 +0000 |
| Subject: | Re: Sugestions for auth | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10464@lists.php.net to get a copy of this message | ||
I'll get down to it,
what do you think of having this in the storage backend per application.
yavo
----- Original Message -----
From: "Martin Jansen" <mj@php.net>
To: "Yavor Shahpasov" <yavo@nicosia.com.cy>
Cc: <pear-dev@lists.php.net>
Sent: Sunday, November 03, 2002 8:09 PM
Subject: Re: [PEAR-DEV] Sugestions for auth
> On Sun Nov 03, 2002 at 07:1050PM +0200, Yavor Shahpasov wrote:
> > Is it possible to have a function setRequireAuth($required) (name can be
> > anything else of cource if it does not make sence)
> >
> > ex:
> > $required = array('/admin/', 'change_password.php');
> > $showLogin = false;
> > $a = new Auth('DB', $dsn, 'myLogin', $showLogin);
> > $a->setRequireAuth($required);
> > $a->start();
> >
> > in this case auth would de the required work to check where the login
form
> > is to be shown.
>
> This is a feature which might be really useful and which has been
> similiarly suggested by Wolfram Kriesing some time ago. (IIRC he even
> implemented it in his Auth package.) Unfortunately I'm pretty busy at
> university and so I expect that *I* will not make any big changes at
> Auth in the near future.
>
> But if you want to provide a patch for implementing this behaviour,
> you should go ahead.
>
> --
> - Martin Martin Jansen
> http://martinjansen.com/
>