[Zope] AUTHENTICATED_USER reverts back to Anonymous User

Etienne Labuschagne ELabuschagne@gims.com
Fri, 30 Nov 2001 15:33:39 +0200


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C179A3.9F0F1340
Content-Type: text/plain;
	charset="iso-8859-1"

Hi there,
 
This is what happens
 
1) User enters site (REQUEST.AUTHENTICATED_USER == "Anonymous User")
2) User logs in when accesing a "secure" page. (REQUEST.AUTHENTICATED_USER
== "myUser")
3) User goes to page that is available for Anonymous Users but which is
rendered differently for logged in users.  Page must now render as if user
is logged in, but does not because REQUEST.AUTHENTICATED_USER == "Anonymous
User" again??
 
After doing some reading it seems as if this is a problem with the way HTML
authentication works (Zope does not receive a browser authentication
challenge or something like that).  Is there a way around this other than
using cookies or url mangling?
 
Thanks
Etienne

------_=_NextPart_001_01C179A3.9F0F1340
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma size=2>Hi 
there,</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma size=2>This is what 
happens</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma size=2>1) User enters site 
(REQUEST.AUTHENTICATED_USER == "Anonymous User")</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma size=2>2) User logs in 
when accesing&nbsp;a "secure" page. (REQUEST.AUTHENTICATED_USER == 
"myUser")</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma size=2>3) User goes to 
page that is available for Anonymous Users but which is rendered differently for 
logged in users.&nbsp; Page must now render as if user is logged in, but does 
not because REQUEST.AUTHENTICATED_USER == "Anonymous User" 
again??</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma size=2>After doing some 
reading it seems as if this is a problem with the way HTML authentication works 
(Zope does not receive a browser authentication challenge or something like 
that).&nbsp; Is there a way around this other than using cookies or url 
mangling?</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=357422513-30112001><FONT face=Tahoma 
size=2>Etienne</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01C179A3.9F0F1340--