[cgiapp] CAP::Authentication, CA::Dispatch and CA::Server

Richard Jones ra.jones at dpw.clara.co.uk
Thu Nov 6 06:31:33 EST 2008


George Hartzell wrote:
> Richard Jones writes:
>  > Anyone managing to get CAP::Authentication, CA::Dispatch and CA::Server 
>  > working together?

[..]

> What happens if you get rid of your check on the username, define a
> LOGIN_RUNMODE, and protect stuff using protected_runmodes?

OK, I tried removing the username check and just relying on the 
authen->protected_runmodes method and it seems to work properly now. 
Also, doing it the other way round also works - username check without 
protected_runmodes, and the advantage of this method is that I can use 
the redirect_after_login function to jump straight to the requested page 
after re-authenticating an expired session. Although at the moment this 
only seems to work with the default login page, but not if I specify the 
LOGIN_RUNMODE.
-- 
Richard Jones


More information about the cgiapp mailing list