[Zope] auth info in RESPONSE.redirect

Casey Duncan casey@zope.com
06 Jun 2002 15:24:24 -0400


The most common way this is done is by persisting the auth info in
cookies. You can use the CookieCrumber product to manage this for you.

hth,

-Casey

On Thu, 2002-06-06 at 00:45, Aseem Mohanty wrote:
> The problem is I am trying to implement a simple login method, and 
> barring IE 5.1 and up all browsers behave nice and clean. IE is really 
> erratic, sometimes ti keeps auth info sometimes it doesnt, since it 
> screws up my logout process too.
> 
> Anyway, thanks for the info.
> AM
> 
> Florent Guillaume wrote:
> 
> >No. RESPONSE.redirect instructs the browser, using a Location header, to
> >try another URL. There is no way in the HTTP protocol to instruct it to
> >use a specific authentication.
> >
> >Florent
> >
> >Aseem Mohanty  <aseem@neurobehavioralsystems.com> wrote:
> >
> >>Hi,
> >>
> >>Is there any way to send the authorisation information gotten by 
> >>something like :
> >>
> >>ac = encodestring('%s:%s' % (username, password))
> >>auth = 'Basic %s' % ac
> >>
> >>alongwith a RESPONSE.redirect('url') where url is a protected resource, 
> >>so that the validation
> >>does not pop up a username/password box and uses the suth info provided.
> >>
> >>TIA.
> >>AM
> >>
> 
> -- 
> ==================================================================
>  Aseem Mohanty							   
>  Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 
>  (R) 510 7696011 (M) 510 3014871 (O) 510 5279231		  	
> ==================================================================								  	
>  "I saw `cout' being shifted "Hello world" times to the left and  
>   stopped right there!!"                        -- Steve Gonedes  
> ================================================================== 
> 
> 
> 
> 
> 
> _______________________________________________
> 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 )