[Zope3-Users] logout feature with zope3

Alec Munro alecmunro at gmail.com
Tue Dec 6 14:14:55 EST 2005

Hi Jane,

I'm not an expert, but having run into a similar situation myself, you
may be out of luck. The HTTP Auth (what generates the popup window) is
almost entirely separate from other browser functionality, and once
the authentication is complete, I don't know of any way you could
access the password. It's possible that you could create a custom
authentication method that combined Basic HTTP with cookie based
Authentication, but it might be simpler to setup a login form for your
users, if that's an option, and use the standard cookie based auth.

Actually, a third option might be to use the Basic HTTP auth, and then
use request.principal to lookup the actual principal information,
including login and password. I believe Zope is currently storing
passwords plain text, so this might work for your purposes. This seems
rather unclean to me, but it might get the job done.

As I said, I am not an expert, but I hope this is at least somewhat helpful.

Alec Munro

On 12/6/05, Jing Song <janejsong at yahoo.com> wrote:
> Hi,
> I have problems to implement my zope logout feature. Since the Basic HTTP
> Authentication does not funcition properly, I'm trying to work around by
> using Philipp's cookie based authentication solution showing in the
> Worldcookery example. But if I only use the default pop-up login window
> without using a customized login form, how could I get the user name and the
> password to set the cookie so that the logout can also function.
> Any idea or example would be very much appreciated. Thank you in advance!
> Jane
>  ________________________________
>  Yahoo! Personals
>  Let fate take it's course directly to your email.
>  See who's waiting for you Yahoo! Personals
> _______________________________________________
> Zope3-users mailing list
> Zope3-users at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users

More information about the Zope3-users mailing list