[Zope3-Users] logout feature with zope3
dominik.huber at perse.ch
Tue Dec 6 16:30:44 EST 2005
The global PrincipalRegistry does not provide any logout mechanism
(regular principals registered within zcml).
The PAU provides the logout mechanism invoking the configured credential
plugin. One simple way to get the logout mechanism is to use the
'Session Credentials'-plugin. (The basic HTTPBasicAuthCredentialsPlugin
does not provide logout mechansim.).
Don't forget to register the following adapter within your overrides.zcml:
Alec Munro wrote:
>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.
>On 12/6/05, Jing Song <janejsong at yahoo.com> wrote:
>>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!
>> 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
>Zope3-users mailing list
>Zope3-users at zope.org
Perse Engineering GmbH
E-Mail: dominik.huber at perse.ch
Telefon: ++41 56 534 7730
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 154 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20051206/252c1689/dominik.huber.vcf
More information about the Zope3-users