<?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.org/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.org/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Wed, 08 Feb 2012 17:31:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: Thiago</title>
		<link>http://blog.springsource.org/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-176437</link>
		<dc:creator>Thiago</dc:creator>
		<pubDate>Wed, 15 Sep 2010 18:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-176437</guid>
		<description>I am trying to make it work here with custom roles that dont contaim the prefix &quot;ROLE_&quot;. All my roles in the database are ADMIN, MANAGER, SUPERVISOR, USER AND SUPPORT. 

When I change the following line 



by this one



(USER is the low level role that must be in the authority list to get into the application)

i am getting this error:

java.lang.IllegalArgumentException: Unsupported configuration attributes: [USER]

I have changed the prefix in the roleVoter as follow


	
	
		
			
				
			
			
		
	


Does anyone have any idea what could be wrong?
Thanks

T</description>
		<content:encoded><![CDATA[<p>I am trying to make it work here with custom roles that dont contaim the prefix &#034;ROLE_&#034;. All my roles in the database are ADMIN, MANAGER, SUPERVISOR, USER AND SUPPORT. </p>
<p>When I change the following line </p>
<p>by this one</p>
<p>(USER is the low level role that must be in the authority list to get into the application)</p>
<p>i am getting this error:</p>
<p>java.lang.IllegalArgumentException: Unsupported configuration attributes: [USER]</p>
<p>I have changed the prefix in the roleVoter as follow</p>
<p>Does anyone have any idea what could be wrong?<br />
Thanks</p>
<p>T</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thiago</title>
		<link>http://blog.springsource.org/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-176436</link>
		<dc:creator>Thiago</dc:creator>
		<pubDate>Wed, 15 Sep 2010 18:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-176436</guid>
		<description>Hello blog author,

Would you create a post explaining how to use the switch user functionality of spring security? This feature is very good when dealing with user impersonation, but there is a lack of documentation and tutorial on this subject.

Thanks
T</description>
		<content:encoded><![CDATA[<p>Hello blog author,</p>
<p>Would you create a post explaining how to use the switch user functionality of spring security? This feature is very good when dealing with user impersonation, but there is a lack of documentation and tutorial on this subject.</p>
<p>Thanks<br />
T</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mukhi</title>
		<link>http://blog.springsource.org/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-173642</link>
		<dc:creator>Mukhi</dc:creator>
		<pubDate>Wed, 16 Jun 2010 15:28:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-173642</guid>
		<description>You are coming up with nice articles that have solutions for real time issues. I have an issue in my application.
I have to pass an external parameter that gets appended to the url http://localhost:8080/account/edit?param=value.

when I enter this url and hit the go button, it is redirected to /login, since there is no user logged in to be redirected to edit account page. In /login page i want to check whether the param is set or not. But i am not getting the parameter what i have set in the URL. Can you please help me how can i solve this problem?</description>
		<content:encoded><![CDATA[<p>You are coming up with nice articles that have solutions for real time issues. I have an issue in my application.<br />
I have to pass an external parameter that gets appended to the url <a href="http://localhost:8080/account/edit?param=value" rel="nofollow">http://localhost:8080/account/edit?param=value</a>.</p>
<p>when I enter this url and hit the go button, it is redirected to /login, since there is no user logged in to be redirected to edit account page. In /login page i want to check whether the param is set or not. But i am not getting the parameter what i have set in the URL. Can you please help me how can i solve this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dinesh</title>
		<link>http://blog.springsource.org/2009/01/02/spring-security-customization-part-1-customizing-userdetails-or-extending-grantedauthority/comment-page-1/#comment-172777</link>
		<dc:creator>Dinesh</dc:creator>
		<pubDate>Thu, 20 May 2010 15:00:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.springsource.com/?p=896#comment-172777</guid>
		<description>&quot;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.&quot;

-- Its good to create a BusinessFunctionRoleVoter that deals with prefix &quot;BF_&quot; and configure it as one of the decision voter list for the accessDecisionManager.

Thanks,
Dinesh</description>
		<content:encoded><![CDATA[<p>&#034;I&#039;ve to do a little modify to make it working… 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.&#034;</p>
<p>&#8211; Its good to create a BusinessFunctionRoleVoter that deals with prefix &#034;BF_&#034; and configure it as one of the decision voter list for the accessDecisionManager.</p>
<p>Thanks,<br />
Dinesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Venu</title>
		<link>http://blog.springsource.org/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.org/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.org/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.org/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.org/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.org/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>
</channel>
</rss>

