<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spring Security customization (Part 1 &#8211; Customizing UserDetails  or extending GrantedAuthority)</title>
	<atom:link href="http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Sun, 21 Mar 2010 12:57:18 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Venu</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-171557</link>
		<dc:creator>Venu</dc:creator>
		<pubDate>Tue, 09 Mar 2010 07:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-171557</guid>
		<description>Can any one explain about &quot;SwitchUser feature of Spring Security&quot; in Spring3.0.x ?
Can you suggest me any online tutorials about &quot;SwitchUser feature of Spring Security&quot; in Spring3.0.x ?



Thanks In Advance


Thanks &amp;&amp; Regards
   Venu.K</description>
		<content:encoded><![CDATA[<p>Can any one explain about &#034;SwitchUser feature of Spring Security&#034; in Spring3.0.x ?<br />
Can you suggest me any online tutorials about &#034;SwitchUser feature of Spring Security&#034; in Spring3.0.x ?</p>
<p>Thanks In Advance</p>
<p>Thanks &amp;&amp; Regards<br />
   Venu.K</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Customizing SpringSecurity to protect each button of a page using Grails Acegi plugin &#171; Felipe Cypriano</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-168818</link>
		<dc:creator>Customizing SpringSecurity to protect each button of a page using Grails Acegi plugin &#171; Felipe Cypriano</dc:creator>
		<pubDate>Wed, 14 Oct 2009 22:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-168818</guid>
		<description>[...] The solution is fully based on SpringSecurity capabilities and should work on every project that uses it independent of plugins or frameworks that I use. Since spring security plugin does the hard work for us, we just need to create two more classes besides acegi&#039;s default user and role and extends UserDetailsService interface. This is based on zk_sample project and is a database implementation of this article by Oleg Zhurakousky. [...]</description>
		<content:encoded><![CDATA[<p>[...] The solution is fully based on SpringSecurity capabilities and should work on every project that uses it independent of plugins or frameworks that I use. Since spring security plugin does the hard work for us, we just need to create two more classes besides acegi&#39;s default user and role and extends UserDetailsService interface. This is based on zk_sample project and is a database implementation of this article by Oleg Zhurakousky. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felix</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-168476</link>
		<dc:creator>Felix</dc:creator>
		<pubDate>Wed, 16 Sep 2009 09:31:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-168476</guid>
		<description>i hope you can help me with my problem or point me to where i can. im new to implementing spring and spring security

our security requirement goes like this. once a user logs into the application we will do a check to see if he has more than 1 role. if the user has more than 1 role we will show a page of the roles that the user has and ask the user to select the role that he wanted for that session. 

i already created a subclass of the userdetails object and when the user selected the role i will modify the user object setAuthorities.

when doing this:
User user = (User) authentication.getPrincipal();
GrantedAuthority[] grarray=user.getAuthorities();

it is returning the updated Authorities but when doing this on the JSP page:




the &quot;remove role&quot; role not selected is still being seen which im expecthing should not since it is not in the userdetails anymore...

i hope you could help me. thanks a lot in advance.</description>
		<content:encoded><![CDATA[<p>i hope you can help me with my problem or point me to where i can. im new to implementing spring and spring security</p>
<p>our security requirement goes like this. once a user logs into the application we will do a check to see if he has more than 1 role. if the user has more than 1 role we will show a page of the roles that the user has and ask the user to select the role that he wanted for that session. </p>
<p>i already created a subclass of the userdetails object and when the user selected the role i will modify the user object setAuthorities.</p>
<p>when doing this:<br />
User user = (User) authentication.getPrincipal();<br />
GrantedAuthority[] grarray=user.getAuthorities();</p>
<p>it is returning the updated Authorities but when doing this on the JSP page:</p>
<p>the &#034;remove role&#034; role not selected is still being seen which im expecthing should not since it is not in the userdetails anymore&#8230;</p>
<p>i hope you could help me. thanks a lot in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gio2375</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-167618</link>
		<dc:creator>gio2375</dc:creator>
		<pubDate>Fri, 17 Jul 2009 15:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-167618</guid>
		<description>Great article Thanks very much. You saved me a lot of time.

I&#039;ve to do a little modify to make it working... Spring in security tags take account of only strings that start with &quot;ROLE&quot; and then our Businness functions that starts with &quot;BF&quot; are ignored.

To avoid this I&#039;ve set rolePrefix to &quot;&quot;.

That&#039;s the code:

  
		  
			  
				  
					  
				  
			  
		  
  
 


Giovanni</description>
		<content:encoded><![CDATA[<p>Great article Thanks very much. You saved me a lot of time.</p>
<p>I&#039;ve to do a little modify to make it working&#8230; Spring in security tags take account of only strings that start with &#034;ROLE&#034; and then our Businness functions that starts with &#034;BF&#034; are ignored.</p>
<p>To avoid this I&#039;ve set rolePrefix to &#034;&#034;.</p>
<p>That&#039;s the code:</p>
<p>Giovanni</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-167576</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Tue, 14 Jul 2009 13:53:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-167576</guid>
		<description>I have little different scenario.
-- In my the case password stored in DB is in encrypted form.
-- I have implemented &#039;UserDetailsService&#039; so I need to give the implementation of            loadUserByUsername(String username) method. But in this method, we get only the username that user has entered on login page. How can I get the password?

If somehow I get the password then I will encrypt the password and pass it to User (org.springframework.security.userdetails.User) Object.</description>
		<content:encoded><![CDATA[<p>I have little different scenario.<br />
&#8211; In my the case password stored in DB is in encrypted form.<br />
&#8211; I have implemented &#039;UserDetailsService&#039; so I need to give the implementation of            loadUserByUsername(String username) method. But in this method, we get only the username that user has entered on login page. How can I get the password?</p>
<p>If somehow I get the password then I will encrypt the password and pass it to User (org.springframework.security.userdetails.User) Object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-167207</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Thu, 04 Jun 2009 14:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-167207</guid>
		<description>intercept-url pattern=&quot;/index.htm*&quot; access=&quot;ROLE_ADMIN&quot; /</description>
		<content:encoded><![CDATA[<p>intercept-url pattern=&#034;/index.htm*&#034; access=&#034;ROLE_ADMIN&#034; /</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-167206</link>
		<dc:creator>Anand</dc:creator>
		<pubDate>Thu, 04 Jun 2009 14:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-167206</guid>
		<description>Why I&#039;m not able to do following

</description>
		<content:encoded><![CDATA[<p>Why I&#039;m not able to do following</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-165297</link>
		<dc:creator>john</dc:creator>
		<pubDate>Mon, 04 May 2009 23:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-165297</guid>
		<description>Could you please help me with with configuring my IDE so that I can use 2.5 MVC framework and Security. I&#039;m using NetBnz 6.5. I have the 2.5 framework, but it doesn&#039;t have the security .jars included. I downloaded the security .zip file, but I don&#039;t know what to do with it. Can I even use NetBnz to implement my apps? I would really appreciate it if you could help me out. Maybe I need to use a different IDE? Thank you very much.</description>
		<content:encoded><![CDATA[<p>Could you please help me with with configuring my IDE so that I can use 2.5 MVC framework and Security. I&#039;m using NetBnz 6.5. I have the 2.5 framework, but it doesn&#039;t have the security .jars included. I downloaded the security .zip file, but I don&#039;t know what to do with it. Can I even use NetBnz to implement my apps? I would really appreciate it if you could help me out. Maybe I need to use a different IDE? Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bousselham Salmi</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-163565</link>
		<dc:creator>Bousselham Salmi</dc:creator>
		<pubDate>Thu, 16 Apr 2009 13:38:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-163565</guid>
		<description>Hi,

Thanks for both articles. Would appreciate if you provide an example using database tables instead properties files.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for both articles. Would appreciate if you provide an example using database tables instead properties files.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PR</title>
		<link>http://blog.springsource.com/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-145383</link>
		<dc:creator>PR</dc:creator>
		<pubDate>Thu, 05 Feb 2009 16:02:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-145383</guid>
		<description>Hello,

Thanks for the article. Would appreciate if you could provide an example with LDAP. We are in the process of implementing a solution for our application.

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for the article. Would appreciate if you could provide an example with LDAP. We are in the process of implementing a solution for our application.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
