hi, I've been trying to use the cookie crumbler product for authentication on my Zope project, but have hit a problem I can't understand: I put a Cookie Crumbler product in the root user directory .../zope/blah/ and create the default login_form, logged_in and logged_out dtml methods. But when I try to access that page, .../zope/blah/ the browser just redirects to itself: ...zope/blah/login_form?came_from=http://.../zope/blah/index_html which spins forever in IE5, and breaks Mozilla with a "redirection limit exceeded" I'm probably doing something stupid, but can't see what. (I'm using Zope 2.5.1, Python 2.1.3 on Solaris 7, and Cookie Crumbler 0.5) TIA Ben Avery YouthNet UK
This happened to me once and it turned out to be a permissions problem with login_form. It must be able to be viewed by Anonymous users. Hope that helps, Kevin -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ben Avery Sent: Tuesday, October 01, 2002 12:56 PM To: zope@zope.org Subject: [Zope] cookie crumbler problem hi, I've been trying to use the cookie crumbler product for authentication on my Zope project, but have hit a problem I can't understand: I put a Cookie Crumbler product in the root user directory .../zope/blah/ and create the default login_form, logged_in and logged_out dtml methods. But when I try to access that page, .../zope/blah/ the browser just redirects to itself: ...zope/blah/login_form?came_from=http://.../zope/blah/index_html which spins forever in IE5, and breaks Mozilla with a "redirection limit exceeded" I'm probably doing something stupid, but can't see what. (I'm using Zope 2.5.1, Python 2.1.3 on Solaris 7, and Cookie Crumbler 0.5) TIA Ben Avery YouthNet UK _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
thanks Kevin, Ulrich I was stuck still for a while, daftly, till realising of course that as well as login_form, the standard_dtml_header and footer also need to be viewable by Anonymous users. This works fine now. Ben Kevin Carlson wrote:
This happened to me once and it turned out to be a permissions problem with login_form. It must be able to be viewed by Anonymous users.
Hope that helps,
Kevin
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Ben Avery Sent: Tuesday, October 01, 2002 12:56 PM To: zope@zope.org Subject: [Zope] cookie crumbler problem
hi,
I've been trying to use the cookie crumbler product for authentication on my Zope project, but have hit a problem I can't understand:
I put a Cookie Crumbler product in the root user directory .../zope/blah/ and create the default login_form, logged_in and logged_out dtml methods. But when I try to access that page, .../zope/blah/ the browser just redirects to itself: ...zope/blah/login_form?came_from=http://.../zope/blah/index_html
which spins forever in IE5, and breaks Mozilla with a "redirection limit exceeded"
I'm probably doing something stupid, but can't see what.
(I'm using Zope 2.5.1, Python 2.1.3 on Solaris 7, and Cookie Crumbler 0.5)
TIA
Ben Avery YouthNet UK
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hello Ben, did you put cookiecrumbler in the same directory you want to protect? Try to move it up one directory. That worked for me. E.g. /my/project/ <- cookiecrumbler here /my/project/restricted/ <- when you try to access this login page will come up Ulrich -- Lost? Get yourself found. http://www.PublisherSEO.com/3 World Wide Web Publisher, Ulrich Wisser, Odensvag 13, S-14571 Norsborg http://www.publisher.de Tel: +46-8-53460905 Fax: +46-8-534 609 06
participants (3)
-
Ben Avery -
Kevin Carlson -
Ulrich Wisser