<?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 &#8211; What happens after /you/ log in?</title> <atom:link href="http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/feed/" rel="self" type="application/rss+xml" /><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/</link> <description>&#34;Simple Software&#34;</description> <lastBuildDate>Mon, 26 Jul 2010 23:17:02 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>By: Jon</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1479</link> <dc:creator>Jon</dc:creator> <pubDate>Wed, 28 Apr 2010 10:58:47 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1479</guid> <description>Redirecting back to the source URL comes out of the box with Spring Security 3 - see http://static.springsource.org/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/web/authentication/SavedRequestAwareAuthenticationSuccessHandler.html</description> <content:encoded><![CDATA[<p>Redirecting back to the source URL comes out of the box with Spring Security 3 &#8211; see <a
href="http://static.springsource.org/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/web/authentication/SavedRequestAwareAuthenticationSuccessHandler.html" rel="nofollow">http://static.springsource.org/spring-security/site/docs/3.0.x/apidocs/org/springframework/security/web/authentication/SavedRequestAwareAuthenticationSuccessHandler.html</a></p> ]]></content:encoded> </item> <item><title>By: Marcos Berwanger</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1414</link> <dc:creator>Marcos Berwanger</dc:creator> <pubDate>Wed, 31 Mar 2010 04:13:35 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1414</guid> <description>How can I get the logged user object on the &quot;doLogin&quot; bean method?Or exists another alternative for use rendered=&quot;#{myBean.userGrantedAccess}Thank&#039;sMarcos</description> <content:encoded><![CDATA[<p>How can I get the logged user object on the &#8220;doLogin&#8221; bean method?</p><p>Or exists another alternative for use rendered=&#8221;#{myBean.userGrantedAccess}</p><p>Thank&#8217;s</p><p>Marcos</p> ]]></content:encoded> </item> <item><title>By: Pamela</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1287</link> <dc:creator>Pamela</dc:creator> <pubDate>Tue, 09 Mar 2010 23:22:35 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1287</guid> <description>Do you think it&#039;s possible to utilize taglibs/tld file in order to create URL protection?I&#039;m currently using JSF 1.2 so I can utilize a tld file that would have security tag defined.If you could give me a quick example, that&#039;d really be fabulous.Thanks~!</description> <content:encoded><![CDATA[<p>Do you think it&#8217;s possible to utilize taglibs/tld file in order to create URL protection?</p><p>I&#8217;m currently using JSF 1.2 so I can utilize a tld file that would have security tag defined.</p><p>If you could give me a quick example, that&#8217;d really be fabulous.</p><p>Thanks~!</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1276</link> <dc:creator>Lincoln</dc:creator> <pubDate>Fri, 05 Mar 2010 19:29:40 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1276</guid> <description>Unfortunately, there is no example, sorry. This was all taken out of:http://ocpsoft.com/scrumshark/ , but you can download the sources for that and take a look.http://code.google.com/p/ocpsoft-tools/</description> <content:encoded><![CDATA[<p>Unfortunately, there is no example, sorry. This was all taken out of:</p><p><a
href="http://ocpsoft.com/scrumshark/" rel="nofollow">http://ocpsoft.com/scrumshark/</a> , but you can download the sources for that and take a look.</p><p><a
href="http://code.google.com/p/ocpsoft-tools/" rel="nofollow">http://code.google.com/p/ocpsoft-tools/</a></p> ]]></content:encoded> </item> <item><title>By: Pamela</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1274</link> <dc:creator>Pamela</dc:creator> <pubDate>Fri, 05 Mar 2010 13:41:09 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1274</guid> <description>By Hello World, I meant your Basic Login example presented in this article and the previous one.Sorry if I confused you in any way.Thanks!</description> <content:encoded><![CDATA[<p>By Hello World, I meant your Basic Login example presented in this article and the previous one.</p><p>Sorry if I confused you in any way.</p><p>Thanks!</p> ]]></content:encoded> </item> <item><title>By: Pamela</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1270</link> <dc:creator>Pamela</dc:creator> <pubDate>Thu, 04 Mar 2010 21:12:10 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1270</guid> <description>BTW where can I download your HelloWorld example?</description> <content:encoded><![CDATA[<p>BTW where can I download your HelloWorld example?</p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1269</link> <dc:creator>Lincoln</dc:creator> <pubDate>Thu, 04 Mar 2010 17:07:35 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1269</guid> <description>No problem. You&#039;d do something very similar. You&#039;d want to create a JSF Action Method in a JSF Managed Bean - something like:public class MyBean {
public boolean isUserGrantedAccess()
{...}
}This method would check the logged in user&#039;s preferences, permissions, the state of the system or whatever logic needed.Then you would disable or render the link by referencing that action method in your Facelet view.&lt;h:commandButton ... rendered=&quot;#{myBean.userGrantedAccess}&quot;/&gt;Notice the &quot;is&quot; should be omitted. See &quot;JEE Unified Expression Language Syntax&quot; for more details on that.</description> <content:encoded><![CDATA[<p>No problem. You&#8217;d do something very similar. You&#8217;d want to create a JSF Action Method in a JSF Managed Bean &#8211; something like:</p><p>public class MyBean {<br
/> public boolean isUserGrantedAccess()<br
/> {&#8230;}<br
/> }</p><p>This method would check the logged in user&#8217;s preferences, permissions, the state of the system or whatever logic needed.</p><p>Then you would disable or render the link by referencing that action method in your Facelet view.</p><p>&lt;h:commandButton &#8230; rendered=&quot;#{myBean.userGrantedAccess}&quot;/&gt;</p><p>Notice the &#8220;is&#8221; should be omitted. See &#8220;JEE Unified Expression Language Syntax&#8221; for more details on that.</p> ]]></content:encoded> </item> <item><title>By: Pamela</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1268</link> <dc:creator>Pamela</dc:creator> <pubDate>Thu, 04 Mar 2010 15:37:36 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1268</guid> <description>How about when I want to hide certain links/buttons for certain users? Would I go thru a similar process, or something different.Sorry, I&#039;m fairly new to this whole programming in Spring Security.Thanks for your response, Lincoln. :)</description> <content:encoded><![CDATA[<p>How about when I want to hide certain links/buttons for certain users? Would I go thru a similar process, or something different.</p><p>Sorry, I&#8217;m fairly new to this whole programming in Spring Security.</p><p>Thanks for your response, Lincoln. <img
src='http://ocpsoft.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Lincoln</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1267</link> <dc:creator>Lincoln</dc:creator> <pubDate>Thu, 04 Mar 2010 15:29:40 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1267</guid> <description>I usually defer to the non-filter security mechanisms for such use-cases. PrettyFaces allows you to do just that with URL actions. In the action you would check the user&#039;s credentials / business scenario and decide whether or not to continue to process and render, or redirect to a different page. There are other ways, but... this is one.&lt;a href=&quot;http://ocpsoft.com/prettyfaces/&quot; rel=&quot;nofollow&quot;&gt;http://ocpsoft.com/prettyfaces/&lt;/a&gt;</description> <content:encoded><![CDATA[<p>I usually defer to the non-filter security mechanisms for such use-cases. PrettyFaces allows you to do just that with URL actions. In the action you would check the user&#8217;s credentials / business scenario and decide whether or not to continue to process and render, or redirect to a different page. There are other ways, but&#8230; this is one.</p><p><a
href="http://ocpsoft.com/prettyfaces/" rel="nofollow">http://ocpsoft.com/prettyfaces/</a></p> ]]></content:encoded> </item> <item><title>By: Pamela</title><link>http://ocpsoft.com/java/jsf-java/spring-security-what-happens-after-you-log-in/#comment-1263</link> <dc:creator>Pamela</dc:creator> <pubDate>Wed, 03 Mar 2010 22:27:45 +0000</pubDate> <guid
isPermaLink="false">http://ocpsoft.com/?p=64#comment-1263</guid> <description>Hi Lincoln,Is there a way you can hide/protect URLs after a user logs in depending on user&#039;s credentials or characteristics?If you have an example, that&#039;d be great.Thanks</description> <content:encoded><![CDATA[<p>Hi Lincoln,</p><p>Is there a way you can hide/protect URLs after a user logs in depending on user&#8217;s credentials or characteristics?</p><p>If you have an example, that&#8217;d be great.</p><p>Thanks</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Served from: ocpsoft.com @ 2010-07-29 17:10:37 by W3 Total Cache -->