<?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: Writing custom UserDetailsService for spring security</title>
	<atom:link href="http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html</link>
	<description>Everything java</description>
	<lastBuildDate>Wed, 01 Feb 2012 06:25:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: mdjn</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-790</link>
		<dc:creator>mdjn</dc:creator>
		<pubDate>Sun, 21 Aug 2011 17:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-790</guid>
		<description>Thanks for this example. It saved my day. 

Im using JPA config in persistence.xml with eclipselink and jndi datasource.

I lost all day trying to inject JPA EntityManager (with @PersistenceContext annotation) or DAO object (with @EJB annotation) but it failed - both were NULL. 

So I will go with your example with injecting &quot;dataSource&quot;.</description>
		<content:encoded><![CDATA[<p>Thanks for this example. It saved my day. </p>
<p>Im using JPA config in persistence.xml with eclipselink and jndi datasource.</p>
<p>I lost all day trying to inject JPA EntityManager (with @PersistenceContext annotation) or DAO object (with @EJB annotation) but it failed &#8211; both were NULL. </p>
<p>So I will go with your example with injecting &#8220;dataSource&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shankha</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-753</link>
		<dc:creator>Shankha</dc:creator>
		<pubDate>Mon, 20 Jun 2011 06:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-753</guid>
		<description>hi,
i have 2 questions:
1. 
private class UserMapper implements ParameterizedRowMapper {
		 
        @Override
        public User mapRow(ResultSet rs, int arg1) throws SQLException {
            return new User(rs.getString(&quot;id_user&quot;), rs.getString(&quot;password_2&quot;), true, true, true, true, getAuthorities(rs.getBoolean(&quot;admin&quot;)));
        }
 
    }


new User(rs.getString(&quot;id_user&quot;), rs.getString(&quot;password_2&quot;), true, true, true, true, getAuthorities(rs.getBoolean(&quot;admin&quot;)));

this method is deprecated, what other way can i implement this.

2. i have a separate table for users and roles both tables use a join table. how can i get the roles and implement it in this way?</description>
		<content:encoded><![CDATA[<p>hi,<br />
i have 2 questions:<br />
1.<br />
private class UserMapper implements ParameterizedRowMapper {</p>
<p>        @Override<br />
        public User mapRow(ResultSet rs, int arg1) throws SQLException {<br />
            return new User(rs.getString(&#8220;id_user&#8221;), rs.getString(&#8220;password_2&#8243;), true, true, true, true, getAuthorities(rs.getBoolean(&#8220;admin&#8221;)));<br />
        }</p>
<p>    }</p>
<p>new User(rs.getString(&#8220;id_user&#8221;), rs.getString(&#8220;password_2&#8243;), true, true, true, true, getAuthorities(rs.getBoolean(&#8220;admin&#8221;)));</p>
<p>this method is deprecated, what other way can i implement this.</p>
<p>2. i have a separate table for users and roles both tables use a join table. how can i get the roles and implement it in this way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-719</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Sat, 12 Mar 2011 00:19:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-719</guid>
		<description>Hey, this post is great!! I had a different DB structure than suggested by Spring Security and with this I can match my DB schema without creating new tables... Thanks a lot!!</description>
		<content:encoded><![CDATA[<p>Hey, this post is great!! I had a different DB structure than suggested by Spring Security and with this I can match my DB schema without creating new tables&#8230; Thanks a lot!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Exploring Google and OpenID login with Spring Security and Spring Roo &#171; BSG Dev</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-707</link>
		<dc:creator>Exploring Google and OpenID login with Spring Security and Spring Roo &#171; BSG Dev</dc:creator>
		<pubDate>Wed, 19 Jan 2011 11:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-707</guid>
		<description>[...] http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-se... [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-se.." rel="nofollow">http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-se..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-686</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Wed, 01 Dec 2010 15:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-686</guid>
		<description>Hi there,

I tried using your code. I have a reference to UserDetailsService(customized) that i have written just like you. But, the authentication does not happen and everytime, it takes the role of anonymous user. What am I missing?

I would appreciate if you could get back to me quickly
Priya
&lt;a href=&quot;http://javaprogrammingtips4u.blogspot.com&quot; rel=&quot;nofollow&quot;&gt;Java Blog&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>I tried using your code. I have a reference to UserDetailsService(customized) that i have written just like you. But, the authentication does not happen and everytime, it takes the role of anonymous user. What am I missing?</p>
<p>I would appreciate if you could get back to me quickly<br />
Priya<br />
<a href="http://javaprogrammingtips4u.blogspot.com" rel="nofollow">Java Blog</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ssdga</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-685</link>
		<dc:creator>ssdga</dc:creator>
		<pubDate>Tue, 30 Nov 2010 22:34:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-685</guid>
		<description>testing the &lt;a href=&quot;http://google.com&quot; rel=&quot;nofollow&quot;&gt;test&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>testing the <a href="http://google.com" rel="nofollow">test</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-678</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Tue, 16 Nov 2010 08:19:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-678</guid>
		<description>Helpful, thanks</description>
		<content:encoded><![CDATA[<p>Helpful, thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ilaiyaraja</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-672</link>
		<dc:creator>ilaiyaraja</dc:creator>
		<pubDate>Wed, 27 Oct 2010 13:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-672</guid>
		<description>Hi... I am very new to this spring security.  i followed the above steps. I have some doubts.
1. From Where i need to call this service.
2. Where to set the the return value user object.

Please reply me...

Thanks</description>
		<content:encoded><![CDATA[<p>Hi&#8230; I am very new to this spring security.  i followed the above steps. I have some doubts.<br />
1. From Where i need to call this service.<br />
2. Where to set the the return value user object.</p>
<p>Please reply me&#8230;</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsha</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-660</link>
		<dc:creator>Harsha</dc:creator>
		<pubDate>Wed, 29 Sep 2010 09:07:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-660</guid>
		<description>Dude....u&#039;r examples are a saviour compared to the documentation provided.

Above u have used a DB to get the user details.

But could u guide me in finding the solution. I need client Website to be authenticated using spring-security with CAS and the user credentials are in Oracle bpm directory. trouble is neither spring security nor oracle bpm directory give access to password information.

In above scenario hw to get a work around for the user authentication.

Any kinda guidance appreciated.</description>
		<content:encoded><![CDATA[<p>Dude&#8230;.u&#8217;r examples are a saviour compared to the documentation provided.</p>
<p>Above u have used a DB to get the user details.</p>
<p>But could u guide me in finding the solution. I need client Website to be authenticated using spring-security with CAS and the user credentials are in Oracle bpm directory. trouble is neither spring security nor oracle bpm directory give access to password information.</p>
<p>In above scenario hw to get a work around for the user authentication.</p>
<p>Any kinda guidance appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: endigolabs</title>
		<link>http://www.codercorp.com/blog/spring/security-spring/writing-custom-userdetailsservice-for-spring-security.html/comment-page-1#comment-644</link>
		<dc:creator>endigolabs</dc:creator>
		<pubDate>Fri, 27 Aug 2010 10:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.codercorp.com/blog/?p=118#comment-644</guid>
		<description>nice coding friends! please visit me back too!</description>
		<content:encoded><![CDATA[<p>nice coding friends! please visit me back too!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

