<?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: Authentication in JSF2 with JAAS: Part 2 &#8211; Authenticating a client/user</title>
	<atom:link href="http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/feed/" rel="self" type="application/rss+xml" />
	<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/</link>
	<description>shit happens ;)</description>
	<lastBuildDate>Sat, 16 Jul 2011 19:09:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Dominik Dorn</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-2707</link>
		<dc:creator>Dominik Dorn</dc:creator>
		<pubDate>Tue, 07 Jun 2011 14:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-2707</guid>
		<description>the action has to be relative to the webapp-context root, e.g. action=&quot;#{request.contextPath}/j_security_logout&quot;</description>
		<content:encoded><![CDATA[<p>the action has to be relative to the webapp-context root, e.g. action=&#8221;#{request.contextPath}/j_security_logout&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paulo</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-2706</link>
		<dc:creator>Paulo</dc:creator>
		<pubDate>Tue, 07 Jun 2011 14:41:31 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-2706</guid>
		<description>Thanks for this tutorial but when i create a form with action=&quot;j_security_logout&quot;, the user is not really logout. Have you any idea about this problem ?</description>
		<content:encoded><![CDATA[<p>Thanks for this tutorial but when i create a form with action=&#8221;j_security_logout&#8221;, the user is not really logout. Have you any idea about this problem ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominik Dorn</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-842</link>
		<dc:creator>Dominik Dorn</dc:creator>
		<pubDate>Fri, 24 Sep 2010 19:41:40 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-842</guid>
		<description>Thanks SundjerBob for the comment.
Actually it has to be #{request.contextPath}/j_security_check as it would otherwise not work with rewritten urls. If adapted the post to reflect this change.</description>
		<content:encoded><![CDATA[<p>Thanks SundjerBob for the comment.<br />
Actually it has to be #{request.contextPath}/j_security_check as it would otherwise not work with rewritten urls. If adapted the post to reflect this change.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SundjerBob</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-839</link>
		<dc:creator>SundjerBob</dc:creator>
		<pubDate>Fri, 24 Sep 2010 13:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-839</guid>
		<description>Hi,
For all of you who haven’t lost 3 hours on this yet,
instead of

action=&quot;/j_security_check&quot;

in form tag, 
goes

action=&quot;j_security_check&quot;

thanks for the tutorial</description>
		<content:encoded><![CDATA[<p>Hi,<br />
For all of you who haven’t lost 3 hours on this yet,<br />
instead of</p>
<p>action=&#8221;/j_security_check&#8221;</p>
<p>in form tag,<br />
goes</p>
<p>action=&#8221;j_security_check&#8221;</p>
<p>thanks for the tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinnie</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-832</link>
		<dc:creator>Vinnie</dc:creator>
		<pubDate>Sun, 19 Sep 2010 05:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-832</guid>
		<description>Great post.  I&#039;m developing a JSF app and looking for JSF security example.
I&#039;m waiting for your next part 3.  Please share your best experience with JSF security.  Thank you.</description>
		<content:encoded><![CDATA[<p>Great post.  I&#8217;m developing a JSF app and looking for JSF security example.<br />
I&#8217;m waiting for your next part 3.  Please share your best experience with JSF security.  Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wikisky</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-735</link>
		<dc:creator>Wikisky</dc:creator>
		<pubDate>Mon, 19 Jul 2010 16:54:45 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-735</guid>
		<description>Great post. Is there any hope for next part?
Thanks</description>
		<content:encoded><![CDATA[<p>Great post. Is there any hope for next part?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominik Dorn</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-414</link>
		<dc:creator>Dominik Dorn</dc:creator>
		<pubDate>Thu, 24 Jun 2010 10:59:57 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-414</guid>
		<description>@Vitor: Thats essentially what Seam Faces, which is led by my friend &lt;a href=&quot;http://twitter.com/lincolnthree&quot; rel=&quot;nofollow&quot;&gt;Lincoln Baxter, III.&lt;/a&gt;, does: it provides a Producer-Method for certain things like FacesContext, HttpServletRequest, etc.

Take a look at http://seamframework.org/Seam3/FacesModule

After including it into your webapp, you could simply use
@Inject HttpServletRequest request;
in your beans.</description>
		<content:encoded><![CDATA[<p>@Vitor: Thats essentially what Seam Faces, which is led by my friend <a href="http://twitter.com/lincolnthree" rel="nofollow">Lincoln Baxter, III.</a>, does: it provides a Producer-Method for certain things like FacesContext, HttpServletRequest, etc.</p>
<p>Take a look at <a href="http://seamframework.org/Seam3/FacesModule" rel="nofollow">http://seamframework.org/Seam3/FacesModule</a></p>
<p>After including it into your webapp, you could simply use<br />
@Inject HttpServletRequest request;<br />
in your beans.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vítor Souza</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-408</link>
		<dc:creator>Vítor Souza</dc:creator>
		<pubDate>Mon, 21 Jun 2010 14:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-408</guid>
		<description>I tried defining an HttpServletRequest property in my EJB with the @Resource annotation but it didn&#039;t work. I didn&#039;t try other CDI annotations (e.g. @Inject). I ended up getting it from the context:

HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();

I also added catches for NullPointerException and ClassCastException to show user-friendly messages in case something goes bad...

Anyways, I&#039;ll wait for your next post to see how you do it.\

Thanks again!
Vítor</description>
		<content:encoded><![CDATA[<p>I tried defining an HttpServletRequest property in my EJB with the @Resource annotation but it didn&#8217;t work. I didn&#8217;t try other CDI annotations (e.g. @Inject). I ended up getting it from the context:</p>
<p>HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();</p>
<p>I also added catches for NullPointerException and ClassCastException to show user-friendly messages in case something goes bad&#8230;</p>
<p>Anyways, I&#8217;ll wait for your next post to see how you do it.\</p>
<p>Thanks again!<br />
Vítor</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Attila</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-404</link>
		<dc:creator>Attila</dc:creator>
		<pubDate>Sun, 20 Jun 2010 22:34:28 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-404</guid>
		<description>Hi!
Nice tutorial, I&#039;m also waiting for part 3 :)</description>
		<content:encoded><![CDATA[<p>Hi!<br />
Nice tutorial, I&#8217;m also waiting for part 3 <img src='http://dominikdorn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dominik Dorn</title>
		<link>http://dominikdorn.com/2010/02/authentication-jsf2-jaas-authorization-user-roles-realms/comment-page-1/#comment-355</link>
		<dc:creator>Dominik Dorn</dc:creator>
		<pubDate>Wed, 16 Jun 2010 13:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://dominikdorn.com/?p=213#comment-355</guid>
		<description>@Vitor:

Currently I&#039;m always injecting the HttpServletRequest into a CDI bean, calling request.login(username, password) there. if that does not throw an exception, I store additional stuff in the (Http)session. 

But sure, will blog about that too.</description>
		<content:encoded><![CDATA[<p>@Vitor:</p>
<p>Currently I&#8217;m always injecting the HttpServletRequest into a CDI bean, calling request.login(username, password) there. if that does not throw an exception, I store additional stuff in the (Http)session. </p>
<p>But sure, will blog about that too.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

