SecurityFilter and Cookies

"Emsley, I (Iain)" <[email protected]> Mon, 14 Jul 2008 14:23:19 +0100
Newsgroups gmane.comp.java.securityfilter.user
Message-ID <F93ED76B6830FB4CB81262937940F72602C86F86@exchange11.fed.cclrc.ac.uk>
This is a multi-part message in MIME format.

--===============1758700638==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C8E5B4.C859A563"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C8E5B4.C859A563
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,=20
=20
I'm currently working on a project which requires that users be able to
login in to some resources on Tomcat using only their cookie, i.e. no
forms if the cookie is valid and an error page if it isn't, which is
derived from a system running on Apache. I'm still fairly new to the
worlds of Tomcat and authentication/authorisation.=20
=20
I've had SecurityFilter suggested to me to do this but is it an
appropriate solution before I get too deep into it?
=20
I've just downloaded the source files and begun working on a Cookie
Authenticator, derived from the Form Authenticator, which reads the
cookies and then sets the Principals but so far have just managed:
java.lang.ClassCastException:
org.securityfilter.authenticator.CookieAuthenticator cannot be cast to
javax.servlet.Filter. I suspect that I haven't quite got it correctly
set up on my server.=20
=20
I'd be grateful for any pointers.=20
=20
Thanks in advance,=20
=20
Iain
=20
Iain Emsley
=20
=20

------_=_NextPart_001_01C8E5B4.C859A563
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3354" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D394525912-14072008>Hi,=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D394525912-14072008>I'm =
currently=20
working on a project which requires that users be able to login in to =
some=20
resources on Tomcat using only their cookie, i.e. no forms if the cookie =
is=20
valid and an error page if it isn't, which is derived from a system =
running on=20
Apache. I'm still fairly new to the worlds of Tomcat and=20
authentication/authorisation. </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D394525912-14072008>I've =
had=20
SecurityFilter suggested to me to do this but is it an appropriate =
solution=20
before I get too deep into it?</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D394525912-14072008>I've =
just downloaded=20
the source files and begun working on a Cookie Authenticator, derived =
from the=20
Form Authenticator,&nbsp;which reads the cookies and then sets the =
Principals=20
but so far have just managed: </SPAN></FONT><FONT face=3DArial =
size=3D2><SPAN=20
class=3D394525912-14072008>java.lang.ClassCastException:=20
org.securityfilter.authenticator.CookieAuthenticator cannot be cast to=20
javax.servlet.Filter. I suspect that I haven't quite got it correctly =
set up on=20
my server. </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D394525912-14072008>I'd be =
grateful for=20
any pointers. </SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D394525912-14072008>Thanks =
in advance,=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D394525912-14072008>Iain</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2>Iain Emsley</FONT></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C8E5B4.C859A563--


--===============1758700638==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
--===============1758700638==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
securityfilter-user mailing list
securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/securityfilter-user

--===============1758700638==--