<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Servlet authentication woes</title>
	<atom:link href="http://boldlyopen.com/2005/04/27/servlet-authentication-woes/feed/" rel="self" type="application/rss+xml" />
	<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/</link>
	<description>To boldly muse about Open Source</description>
	<pubDate>Wed, 07 Jan 2009 13:18:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Ugo Cei</title>
		<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/#comment-269</link>
		<dc:creator>Ugo Cei</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabellino.it/blog/2005/04/27/servlet-authentication-woes/#comment-269</guid>
		<description>One possibility would be to place a custom servlet filter that wraps requests to the REST URLs and implements BASIC auth by hand (shouldn't be hard). &lt;br /&gt;
&lt;br /&gt;
Another is to put an Apache httpd with mod_proxy in front and protect the REST URLs with Apache, leaving form-based auth to the servlet container.</description>
		<content:encoded><![CDATA[<p>One possibility would be to place a custom servlet filter that wraps requests to the REST URLs and implements BASIC auth by hand (shouldn&#8217;t be hard). </p>
<p>Another is to put an Apache httpd with mod_proxy in front and protect the REST URLs with Apache, leaving form-based auth to the servlet container.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Ewins</title>
		<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/#comment-270</link>
		<dc:creator>Brian Ewins</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabellino.it/blog/2005/04/27/servlet-authentication-woes/#comment-270</guid>
		<description>We went for the 'duplicate webapp' solution, its just a change to the build scripts. In fact if you have an XML/SOAP client, its better to have a separate webapp, or you'll get unwanted HTML responses for errors.&lt;br /&gt;
&lt;br /&gt;
My gripe with this stuff is more that it is still *impossible* to portably have container-managed SSO across servers going by the servlet spec. (ie things like CAS, Athens - the spec allows for SSO on a single container). This leaves the container not knowing the security context of servlet requests and a lot of work needs done to help integrate properly with other parts of the J2EE stack (where acegi comes in). &lt;br /&gt;
&lt;br /&gt;
If apps could just declare 'CONTAINER-MANAGED' authentication and leave the details until deployment time, life would be much better (wouldn't solve your problem though).</description>
		<content:encoded><![CDATA[<p>We went for the &#8216;duplicate webapp&#8217; solution, its just a change to the build scripts. In fact if you have an XML/SOAP client, its better to have a separate webapp, or you&#8217;ll get unwanted HTML responses for errors.</p>
<p>My gripe with this stuff is more that it is still *impossible* to portably have container-managed SSO across servers going by the servlet spec. (ie things like CAS, Athens - the spec allows for SSO on a single container). This leaves the container not knowing the security context of servlet requests and a lot of work needs done to help integrate properly with other parts of the J2EE stack (where acegi comes in). </p>
<p>If apps could just declare &#8216;CONTAINER-MANAGED&#8217; authentication and leave the details until deployment time, life would be much better (wouldn&#8217;t solve your problem though).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: magomarcelo</title>
		<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/#comment-271</link>
		<dc:creator>magomarcelo</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabellino.it/blog/2005/04/27/servlet-authentication-woes/#comment-271</guid>
		<description>I had the same problem and ended using BASIC auth for webservices (Hessian) and custom code for Form Authentication (admin app).&lt;br /&gt;
I've also tried the SecurityFilter solution, trying to mix it with a Tomcat Realm at the Container level but didn't work, unfortunately SecurityFilter (even the latest 2.0) needs to create its own instance of a Tomcat Realm object and it seems to work only for JDBCRealm, not even DataSourceRealm, that needs a reference to the container to access the JNDI context.&lt;br /&gt;
But after this experience now I would use two different webapp, maybe sharing some code in CATALINA_HOME/shared, at least it makes sense that sessions for webservices users and web users are separated... maybe the servlet spec was right?&lt;br /&gt;
Looks like stuff for some next JUG meeting ;)</description>
		<content:encoded><![CDATA[<p>I had the same problem and ended using BASIC auth for webservices (Hessian) and custom code for Form Authentication (admin app).<br />
I&#8217;ve also tried the SecurityFilter solution, trying to mix it with a Tomcat Realm at the Container level but didn&#8217;t work, unfortunately SecurityFilter (even the latest 2.0) needs to create its own instance of a Tomcat Realm object and it seems to work only for JDBCRealm, not even DataSourceRealm, that needs a reference to the container to access the JNDI context.<br />
But after this experience now I would use two different webapp, maybe sharing some code in CATALINA_HOME/shared, at least it makes sense that sessions for webservices users and web users are separated&#8230; maybe the servlet spec was right?<br />
Looks like stuff for some next JUG meeting <img src='http://boldlyopen.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars G. Svensson</title>
		<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/#comment-272</link>
		<dc:creator>Lars G. Svensson</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabellino.it/blog/2005/04/27/servlet-authentication-woes/#comment-272</guid>
		<description>I had exactly the same problem, but managed to solve it with securityfilter (http://securityfilter.sourceforge.net/)  I configured my web xml to run two instances of the filter with different configuration and then map the filters to differend url-patterns.&lt;br /&gt;
Could that be a solution?&lt;br /&gt;
&lt;br /&gt;
Lars</description>
		<content:encoded><![CDATA[<p>I had exactly the same problem, but managed to solve it with securityfilter (http://securityfilter.sourceforge.net/)  I configured my web xml to run two instances of the filter with different configuration and then map the filters to differend url-patterns.<br />
Could that be a solution?</p>
<p>Lars</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vurti Galka</title>
		<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/#comment-273</link>
		<dc:creator>Vurti Galka</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabellino.it/blog/2005/04/27/servlet-authentication-woes/#comment-273</guid>
		<description>Have a look at http://acegisecurity.sourceforge.net/</description>
		<content:encoded><![CDATA[<p>Have a look at <a href="http://acegisecurity.sourceforge.net/" rel="nofollow">http://acegisecurity.sourceforge.net/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon</title>
		<link>http://boldlyopen.com/2005/04/27/servlet-authentication-woes/#comment-274</link>
		<dc:creator>anon</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.rabellino.it/blog/2005/04/27/servlet-authentication-woes/#comment-274</guid>
		<description>try java OS single sign on&lt;br /&gt;
http://www.josso.org/</description>
		<content:encoded><![CDATA[<p>try java OS single sign on<br />
<a href="http://www.josso.org/" rel="nofollow">http://www.josso.org/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
