[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Replacing CAP::Plugin::Authentication login_box



On May 23, 2006, at 8:39 PM, Cees Hek wrote:

On 4/29/06, Ed Pigg <suppressed> wrote:
If I want to replace the built-in login form I need a method that
will generate the html form correct? So in my base class do I create

sub login_box {

}

or do I create a separate login sub.

Looks like I am probably a little bit late for this one.  Sorry!

What you can do is create a runmode that generates a login HTML page.
Then just set the LOGIN_RUNMODE config parameter to tell the Authen
plugin to redirect to that runmode when a login is required.  You can
also provide an external URL through LOGIN_URL, which could be used to
send a user to a central authentication website.

Will that work if you are protecting all runmodes? You know, chicken/ egg sort of thing? You want to protect all, but you need the LOGIN_RUNMODE to log in, but all runmodes are protected, but you.....

I've figured a way to make things work, but I'm always looking for a better way.

Ed Pigg

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.