Authentication without management screens?
Hi, Is there a way to open the standard authentication dialog then redirect to a given url, so that somebody can be logged in, but not necessarily see (by default) the management screens? Kind of like this... theurl = context.REQUEST['theurl'] #passed in querystring if authenticated_user(): return RESPONSE.redirect(theurl) else: return RESPONSE.AUTHENTICATION_DIALOG Cheers tom -- tom smith | tom@othermedia.com | http://www.othermedia.com/blog 0207 089 5959 | Floor 3, The Pavilion, Newhams Lane, London SE1 3UZ
On Tue, 18 Sep 2001, tom smith wrote:
Is there a way to open the standard authentication dialog then redirect to a given url, so that somebody can be logged in, but not necessarily see (by default) the management screens?
Anytime someone tries to access a page that doesn't give the Anonymous user "View" permission, the authentication dialog will pop up. You don't need to give the user permission to see the manage screens. You could create a new role in the root of your Zope, give that role the appropriate permissions, and Zope should do the right thing. -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.org | http://www.zope.com W. St. Paul, MN | | http://slashdot.org wilson@visi.com | <dtml-var pithy_quote> | http://linux.com
Anytime someone tries to access a page that doesn't give the Anonymous user "View" permission, the authentication dialog will pop up. You don't need to give the user permission to see the manage screens. You could create a new role in the root of your Zope, give that role the appropriate permissions, and Zope should do the right thing.
That's fine, but I need a "public" page, but that has different options when you are logged in. I worked out how to do it, after a fashion, in the end http://www.zopelabs.com/cookbook/1001322021 Cheers tom -- tom smith | tom@othermedia.com | http://www.othermedia.com/blog 0207 089 5959 | Floor 3, The Pavilion, Newhams Lane, London SE1 3UZ
participants (2)
-
Timothy Wilson -
tom smith