<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Democratic ambitions... and software dev juices &#187; spring</title>
	<atom:link href="http://www.alessandro.vincelli.name/tag/spring/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alessandro.vincelli.name</link>
	<description>by alessandro vincelli</description>
	<lastBuildDate>Mon, 09 Jan 2012 10:02:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Spring Security, OpenID, Wicket Demo</title>
		<link>http://www.alessandro.vincelli.name/2011/05/11/spring-security-openid-wicket-demo/</link>
		<comments>http://www.alessandro.vincelli.name/2011/05/11/spring-security-openid-wicket-demo/#comments</comments>
		<pubDate>Wed, 11 May 2011 09:45:36 +0000</pubDate>
		<dc:creator>Alessandro</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[openID]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[spring security]]></category>

		<guid isPermaLink="false">http://www.alessandro.vincelli.name/?p=247</guid>
		<description><![CDATA[I completed the setup of a small application that use Spring Security to perform an OpenID authentication. The application integrates also SpringSecurity and Wicket Security. Follows some details. The demo conatains two different solutions, one uses the spring namespace, the other configures explicilty Spring security filters and providers. The main issue to solve is how [...]]]></description>
			<content:encoded><![CDATA[<p>I completed the setup of a small application that use Spring Security to perform an OpenID authentication. The application integrates also SpringSecurity and Wicket Security. Follows some details.</p>
<p>The demo conatains two different solutions, one uses the spring namespace, the other configures explicilty Spring security filters and providers.</p>
<p>The main issue to solve is <em>how store the OpenID attributes returned from the OpenID provider to the Sprin UserDetails object</em>.</p>
<p><strong>Spring Security Name Space OpenID Setup</strong></p>
<p>Through the element <em>&lt;openid-login/&gt;</em> Spring  auto-configures an <em>OpenIDAuthenticationFilter</em> and an <em>OpenIDAuthenticationProvider. </em>The element <em>&lt;attribute-exchange/&gt; </em>contains all the  OpenId attribute element to ask to the provider.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:http<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:anonymous</span> <span style="color: #000066;">enabled</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:logout</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:openid</span> -login <span style="color: #000066;">authentication-success-handler-ref</span>=<span style="color: #ff0000;">&quot;authenticationSuccessHandler&quot;</span> <span style="color: #000066;">login-page</span>=<span style="color: #ff0000;">&quot;/login&quot;</span> <span style="color: #000066;">authentication-failure-url</span>=<span style="color: #ff0000;">&quot;/?login_error=true&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:attribute</span> -exchange<span style="color: #000000; font-weight: bold;">&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:openid</span> -attribute <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;http://schema.openid.net/contact/email&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:openid</span> -attribute <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;firstName&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;http://axschema.org/namePerson/first&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:openid</span> -attribute <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;lastName&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;http://axschema.org/namePerson/last&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:openid</span> -attribute <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;language&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;http://axschema.org/pref/language&quot;</span> <span style="color: #000066;">required</span>=<span style="color: #ff0000;">&quot;true&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/security:attribute<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/security:openid<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;security:remember</span> -me <span style="color: #000066;">key</span>=<span style="color: #ff0000;">&quot;alessandro-vincelli-openid&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/security:http<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>To be continue&#8230;</p>
<p>DEMO: <a href="http://demo.alessandro.vincelli.name/openid/">http://demo.alessandro.vincelli.name/openid/</a></p>
<p>Source: <a href="http://youeat.googlecode.com/svn/spring-security-open-id">http://youeat.googlecode.com/svn/spring-security-open-id</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alessandro.vincelli.name/2011/05/11/spring-security-openid-wicket-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouEat 1.4 released</title>
		<link>http://www.alessandro.vincelli.name/2010/07/20/youeat-1-4-release/</link>
		<comments>http://www.alessandro.vincelli.name/2010/07/20/youeat-1-4-release/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 08:50:20 +0000</pubDate>
		<dc:creator>Alessandro</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[youeat]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[spring MVC]]></category>
		<category><![CDATA[spring security]]></category>
		<category><![CDATA[youeat.org]]></category>

		<guid isPermaLink="false">http://www.alessandro.vincelli.name/?p=223</guid>
		<description><![CDATA[YouEat 1.4 is released and available on www.youeat.org. Improvements: Added security on REST YouEat Services Improved REST interface Improvements on RistorantePositionService, now the distance is calculated using the Hibernate API Technical Notes: upgraded to Spring 3.0.3 upgraded to jackson 1.5.4 Links: project home 1.4. source code Java Doc maven site issues wiki]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.alessandro.vincelli.name/wp-content/uploads/2010/02/logo-mela-small.png"><img class="size-full wp-image-138 alignright" title="logo-mela-small" src="http://www.alessandro.vincelli.name/wp-content/uploads/2010/02/logo-mela-small.png" alt="" width="80" height="80" /></a>YouEat 1.4 is released and available on <a title="youeat.org" href="http://www.youeat.org">www.youeat.org</a>.</p>
<p><strong>Improvements:</strong></p>
<ul>
<li>Added security on REST YouEat Services</li>
<li>Improved REST interface</li>
<li>Improvements on RistorantePositionService, now the distance is calculated using the Hibernate API</li>
</ul>
<p><strong>Technical Notes:</strong></p>
<ul>
<li>upgraded to Spring 3.0.3</li>
<li>upgraded to jackson 1.5.4</li>
</ul>
<p><strong>Links:</strong></p>
<ul>
<li><a title="youeat.org project home" href="http://code.google.com/p/youeat/">project home</a></li>
<li><a title="youeat.org 1.3 source tag" href="http://code.google.com/p/youeat/source/browse/#svn/tags/youeat-1.4">1.4. source code</a></li>
<li><a title="youeat.org JavaDoc" href="http://www.alessandro.vincelli.name/youeat/apidocs/index.html">Java Doc</a></li>
<li><a title="youeat.org Maven Site" href="http://www.alessandro.vincelli.name/youeat/">maven site</a></li>
<li><a title="youeat.org issues" href="http://code.google.com/p/youeat/issues/list">issues</a></li>
<li><a title="youeat.ork wiki" href="http://code.google.com/p/youeat/w/list">wiki</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.alessandro.vincelli.name/2010/07/20/youeat-1-4-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouEat techs</title>
		<link>http://www.alessandro.vincelli.name/2010/02/17/youeat-techs/</link>
		<comments>http://www.alessandro.vincelli.name/2010/02/17/youeat-techs/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:37:23 +0000</pubDate>
		<dc:creator>Alessandro</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[youeat]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[lucene]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://www.alessandro.vincelli.name/?p=131</guid>
		<description><![CDATA[YouEat is an open source application. You can check the code at http://code.google.com/p/youeat/. YouEat is a Java application built only with open-source software: Apache Wicket, for the web interface Spring Framework is the glue for all the components Hibernate is the JPA implementation Apache Lucene to implement the internal search engine Apache Maven is the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.alessandro.vincelli.name/wp-content/uploads/2010/02/logo-mela-small.png"><img class="size-full wp-image-138 alignright" title="logo-mela-small" src="http://www.alessandro.vincelli.name/wp-content/uploads/2010/02/logo-mela-small.png" alt="" width="80" height="80" /></a>YouEat is an open source application. You can check the code at <a title="YouEat project code" href="http://code.google.com/p/youeat/">http://code.google.com/p/youeat/</a>.</p>
<p>YouEat is a Java application built only with open-source software:</p>
<ul>
<li>Apache Wicket, for the web interface</li>
<li>Spring Framework is the glue for all the components</li>
<li>Hibernate is the JPA implementation</li>
<li>Apache Lucene to implement the internal search engine</li>
<li>Apache Maven is the dev manager</li>
<li>JUnit is test suite</li>
<li>PostgreSQL is the database engine</li>
</ul>
<p>My idea is create an <em>easy to read</em> application&#8230; therefore any feedback is well accepted <img src='http://www.alessandro.vincelli.name/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alessandro.vincelli.name/2010/02/17/youeat-techs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JackWicket improvements</title>
		<link>http://www.alessandro.vincelli.name/2009/05/11/jackwicket-improvements/</link>
		<comments>http://www.alessandro.vincelli.name/2009/05/11/jackwicket-improvements/#comments</comments>
		<pubDate>Mon, 11 May 2009 09:16:42 +0000</pubDate>
		<dc:creator>Alessandro</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[jackrabbit]]></category>
		<category><![CDATA[jackrabbit ocm]]></category>
		<category><![CDATA[jackwicket]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[sonar]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[spring extension jcr]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://www.alessandro.vincelli.name/?p=113</guid>
		<description><![CDATA[I changed a lot on the core of jackwicket. Pricincipally I moved from the jcr-spring-modules to the new org.springframework.se-jcr. I also removed the DAO infrastucre and I simplified the implemetation of the service layer. To rebuild the Service Layer I used basically the JcrMappingTemplate, but in order to have a Generic interface I extended this [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-116 alignright" title="Improvements" src="http://www.alessandro.vincelli.name/wp-content/uploads/2009/05/roadway_improvements-300x295.jpg" alt="Improvements" width="144" height="142" />I changed a lot on the core of jackwicket.<br />
Pricincipally I moved from the jcr-spring-modules to the new org.springframework.se-jcr.</p>
<p>I also removed the DAO infrastucre and I simplified the implemetation of the service layer. To rebuild the Service Layer I used basically the JcrMappingTemplate, but in order to have a Generic interface I extended this class with JcrMappingTemplateGeneric that offers a type safe implementation of the super class.</p>
<p>You can find some samples in the implementation of the  service layer in JackWicket.</p>
<p><a title="JackWicket project site" href="http://www.alessandro.vincelli.name/project-jackwicket/" target="_blank">Project website</a><br />
<a title="Jackwicket demo" href="http://demo.alessandro.vincelli.name/jackwicket/" target="_blank">Demo</a><br />
Continuous integration (not available)<br />
Code Quality(not available)</p>
<p>P.S.<br />
Thanks<a href="http://salvatoreincandela.blogspot.com/"> Salvo</a> for the  technical advice <img src='http://www.alessandro.vincelli.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.alessandro.vincelli.name/2009/05/11/jackwicket-improvements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Path relativi in Log4j con Spring</title>
		<link>http://www.alessandro.vincelli.name/2009/01/15/path-relativi-in-log4j-con-spring/</link>
		<comments>http://www.alessandro.vincelli.name/2009/01/15/path-relativi-in-log4j-con-spring/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 12:09:31 +0000</pubDate>
		<dc:creator>Alessandro</dc:creator>
				<category><![CDATA[Italiano]]></category>
		<category><![CDATA[segnalazioni]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[spring]]></category>

		<guid isPermaLink="false">http://www.alessandro.vincelli.name/?p=77</guid>
		<description><![CDATA[Segnalo questo interessante articolo che offre una soluzione sulla configurazione del path dei file di log in Log4j.]]></description>
			<content:encoded><![CDATA[<p>Segnalo questo interessante <a title="Configurare path relativi per Log4j utilizzando Spring" href="http://www.megadix.it/content/configurare-path-relativi-log4j-utilizzando-spring" target="_blank">articolo</a> che offre una soluzione sulla configurazione del path dei file di log in Log4j.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alessandro.vincelli.name/2009/01/15/path-relativi-in-log4j-con-spring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

