CookieCrumbler - default authentication dialog
I'm using CookieCrumbler for authentication, and users are directed to login/login for the standard login form. However, when anonymous users try and access a protected resource, a standard http authentication dialog pops up. I want them to be directed to my login/login page instead. Is there some bit of zope pixie dust to enable this? Thanks, John Hunter Zope 2.7 CookieCrumbler 1.2
John Hunter wrote at 2004-8-13 13:40 -0500:
I'm using CookieCrumbler for authentication, and users are directed to login/login for the standard login form.
However, when anonymous users try and access a protected resource, a standard http authentication dialog pops up. I want them to be directed to my login/login page instead.
Is there some bit of zope pixie dust to enable this?
Customize "standard_error_message" to do what you want. You do this always when you want to customize error behaviour. -- Dieter
John Hunter wrote:
However, when anonymous users try and access a protected resource, a standard http authentication dialog pops up. I want them to be directed to my login/login page instead.
This generally means you're CookieCrumbler's login_method property hasn't been set correctly, or the page it points to itsn't anonymously viewable. When that box pops up, hit cancel, see if the message it gives you gives you any clues. The VerboseSecurity product may help here... Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
Dieter Maurer -
John Hunter