[Zope-dev] Re: CookieCrumbler and User-Logging

Tres Seaver tseaver at zope.com
Mon Feb 7 12:57:08 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Simon Neidhold wrote:
| hi,
|
| i'am using the cookiecrumbler-product (v1.2) in a zope-2.7.1 instance to
| get cookie-based login for my users.
| the approach worked well until now.
|
| today i've encountered a problem. users can authorize themselve, but
| their username isnt send regularly within the authentication-header.
| therefore all log-entrys in the Z2.log contain the username 'Anonymous
| User' not the actual authenticated one.
|
| i've searched the mailinglist for possible fixes, but the only result is
| that dirty hack:
|
http://mail.zope.org/pipermail/zope-collector-monitor/2003-February/001733.html

|
| it was posted 2 years ago, so i'am looking forward that someone knows an
| even better solution?

I am attaching the patch which Casey Duncan worked up to log the
cookie-based user somewhat more cleanly.

Tres.
- --
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCB6v0GqWXf00rNCgRAipeAKCBWwFdDlV2N0v9jhQDOYLMEv7WiQCghf4x
VB9jmCCJTJXwPpjorxOXs90=
=IJ+W
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cookie_auth_log.patch
Type: text/x-patch
Size: 3741 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20050207/e94cf25f/cookie_auth_log.bin


More information about the Zope-Dev mailing list