<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: JSF/Acegi authentication with a backing bean</title>
	<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/</link>
	<description>Just another weblog about (web) development technologies like spring, tapestry, jersey, jsf, hibernate and more</description>
	<pubDate>Fri, 18 May 2012 18:09:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: martin.grotzke</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16968</link>
		<pubDate>Tue, 11 Mar 2008 10:33:18 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16968</guid>
					<description>Hi Laskhmi,

have you implemented acegi authentication as described here?

So that I understand your problem: your authentication provider does not provide authentication information correctly?

&lt;pre&gt;&lt;code&gt;&lt;quote&gt;Acegi retrieves all the authentication information from database while loading the application itself.&lt;/quote&gt;&lt;/code&gt;&lt;/pre&gt;
Why does it do this? What are the differences compared to the "standard" acegi configuration?

Cheers,
Martin</description>
		<content:encoded><![CDATA[<p>Hi Laskhmi,</p>
<p>have you implemented acegi authentication as described here?</p>
<p>So that I understand your problem: your authentication provider does not provide authentication information correctly?</p>
<pre><code>&lt;quote&gt;Acegi retrieves all the authentication information from database while loading the application itself.&lt;/quote&gt;</code></pre>
<p>Why does it do this? What are the differences compared to the &#8220;standard&#8221; acegi configuration?</p>
<p>Cheers,<br />
Martin
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: lakshmi</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16966</link>
		<pubDate>Tue, 11 Mar 2008 09:30:06 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16966</guid>
					<description>Hi,

       I am implementing Acegi in my JSF application. Both authentication and authorization is working fine with my application. But If i register a new user in my application then i have to stop and restart the server inorder to authenticate that new user. Else it shows "user not found" message . Acegi retrieves all the authentication information from database while loading the application itself. It was not holding the newly registered user's details. i searched in the net and tried to instantiate the Acegi's application context from its xml files explicitly when a new user is activated. But it was not working. How can we add a new user to Authentication object??</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>       I am implementing Acegi in my JSF application. Both authentication and authorization is working fine with my application. But If i register a new user in my application then i have to stop and restart the server inorder to authenticate that new user. Else it shows &#8220;user not found&#8221; message . Acegi retrieves all the authentication information from database while loading the application itself. It was not holding the newly registered user&#8217;s details. i searched in the net and tried to instantiate the Acegi&#8217;s application context from its xml files explicitly when a new user is activated. But it was not working. How can we add a new user to Authentication object??
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: martin.grotzke</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16581</link>
		<pubDate>Wed, 13 Feb 2008 08:21:36 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16581</guid>
					<description>You're welcome :)</description>
		<content:encoded><![CDATA[<p>You&#8217;re welcome :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: thomas</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16580</link>
		<pubDate>Wed, 13 Feb 2008 07:37:45 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16580</guid>
					<description>This helps.

Now I see what's the reason why you use this in your faces-config.

Many thanks!</description>
		<content:encoded><![CDATA[<p>This helps.</p>
<p>Now I see what&#8217;s the reason why you use this in your faces-config.</p>
<p>Many thanks!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: martin.grotzke</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16562</link>
		<pubDate>Tue, 12 Feb 2008 15:30:16 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16562</guid>
					<description>Ok. What about setting a &lt;pre&gt;&lt;code&gt;&lt;redirect/&gt;&lt;/code&gt;&lt;/pre&gt; in the faces-config for these navigation cases?</description>
		<content:encoded><![CDATA[<p>Ok. What about setting a
<pre><code>&lt;redirect/&gt;</code></pre>
<p> in the faces-config for these navigation cases?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: thomas</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16557</link>
		<pubDate>Tue, 12 Feb 2008 14:15:28 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16557</guid>
					<description>Here again my codes:

welcome.xhtml:

&lt;code&gt;
&lt;h:form&gt;
	&lt;h:panelGrid border="1" columns="1"&gt;
		&lt;h:commandLink action="toUser"&gt;
			&lt;h:outputText value="To User"&gt;&lt;/h:outputText&gt;
		&lt;/h:commandLink&gt;
		&lt;h:commandLink action="toAdmin"&gt;
			&lt;h:outputText value="To Admin"&gt;&lt;/h:outputText&gt;
		&lt;/h:commandLink&gt;
		&lt;h:commandLink action="toSupervisor"&gt;
			&lt;h:outputText value="To Supervisor"&gt;&lt;/h:outputText&gt;
		&lt;/h:commandLink&gt;
	&lt;/h:panelGrid&gt;
&lt;/h:form&gt;
...
&lt;/code&gt;


Admni.xhtml

&lt;code&gt;
&lt;h:form&gt;
	&lt;h:commandLink action="toSupervisor"&gt;
		&lt;h:outputText value="To Supervisor"&gt;&lt;/h:outputText&gt;
	&lt;/h:commandLink&gt;
&lt;/h:form&gt;
...
&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>Here again my codes:</p>
<p>welcome.xhtml:</p>
<p><pre><code>
&lt;h:form&gt;
	&lt;h:panelGrid border="1" columns="1"&gt;
		&lt;h:commandLink action="toUser"&gt;
			&lt;h:outputText value="To User"&gt;&lt;/h:outputText&gt;
		&lt;/h:commandLink&gt;
		&lt;h:commandLink action="toAdmin"&gt;
			&lt;h:outputText value="To Admin"&gt;&lt;/h:outputText&gt;
		&lt;/h:commandLink&gt;
		&lt;h:commandLink action="toSupervisor"&gt;
			&lt;h:outputText value="To Supervisor"&gt;&lt;/h:outputText&gt;
		&lt;/h:commandLink&gt;
	&lt;/h:panelGrid&gt;
&lt;/h:form&gt;
...
</code></pre></p>
<p>Admni.xhtml</p>
<p><pre><code>
&lt;h:form&gt;
	&lt;h:commandLink action="toSupervisor"&gt;
		&lt;h:outputText value="To Supervisor"&gt;&lt;/h:outputText&gt;
	&lt;/h:commandLink&gt;
&lt;/h:form&gt;
...
</code></pre>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: thomas</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16556</link>
		<pubDate>Tue, 12 Feb 2008 14:12:18 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16556</guid>
					<description>My filter-mapping looks as follow. Isn't correct?


&lt;code&gt;
	&lt;filter-mapping&gt;
		&lt;filter-name&gt;Acegi Filter Chain Proxy&lt;/filter-name&gt;
		&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
		&lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
		&lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
	&lt;/filter-mapping&gt;
&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>My filter-mapping looks as follow. Isn&#8217;t correct?</p>
<p><pre><code>
	&lt;filter-mapping&gt;
		&lt;filter-name&gt;Acegi Filter Chain Proxy&lt;/filter-name&gt;
		&lt;url-pattern&gt;/*&lt;/url-pattern&gt;
		&lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
		&lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
	&lt;/filter-mapping&gt;
</code></pre>
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: martin.grotzke</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16555</link>
		<pubDate>Tue, 12 Feb 2008 12:42:22 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16555</guid>
					<description>Thomas,

you might try to add a &lt;pre&gt;&lt;code&gt;&lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;&lt;/code&gt;&lt;/pre&gt; element to your acegi filter mapping, so that this is applied to any forward targets matching the specified servlet or URL pattern.

Cheers,
Martin</description>
		<content:encoded><![CDATA[<p>Thomas,</p>
<p>you might try to add a
<pre><code>&lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;</code></pre>
<p> element to your acegi filter mapping, so that this is applied to any forward targets matching the specified servlet or URL pattern.</p>
<p>Cheers,<br />
Martin
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: martin.grotzke</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16554</link>
		<pubDate>Tue, 12 Feb 2008 12:11:50 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16554</guid>
					<description>Try &lt;pre&gt;&lt;code&gt;&lt;pre&gt;&lt;/code&gt;&lt;/pre&gt; followed by a &lt;pre&gt;&lt;code&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt; tag around your code.</description>
		<content:encoded><![CDATA[<p>Try
<pre><code>&lt;pre&gt;</code></pre>
<p> followed by a
<pre><code>&lt;code&gt;</code></pre>
<p> tag around your code.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: thomas</title>
		<link>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16553</link>
		<pubDate>Tue, 12 Feb 2008 10:07:53 +0000</pubDate>
		<guid>http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/#comment-16553</guid>
					<description>I wonder I can't upload jsf code?</description>
		<content:encoded><![CDATA[<p>I wonder I can&#8217;t upload jsf code?
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

