[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3549) RememberMe autologin mode doesn't work out of the box
Stefano Travelli (JIRA)
jira-events at lists.jboss.org
Mon Oct 13 04:45:20 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3549?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12433543#action_12433543 ]
Stefano Travelli commented on JBSEAM-3549:
------------------------------------------
I found a simple workaround using the captureCurrentView/returnToCapturedView mechanism:
<event type="org.jboss.seam.security.notLoggedIn">
<action execute="#{redirect.captureCurrentView}"/>
<action execute="#{identity.tryLogin()}"/>
</event>
<event type="org.jboss.seam.security.loginSuccessful">
<action execute="#{redirect.returnToCapturedView}"/>
</event>
Maybe it could go in the doc.
> RememberMe autologin mode doesn't work out of the box
> -----------------------------------------------------
>
> Key: JBSEAM-3549
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3549
> Project: Seam
> Issue Type: Bug
> Components: Security
> Affects Versions: 2.1.0.CR1
> Reporter: Stefano Travelli
>
> After JBSEAM-3422 Identity.isLoggedIn() doesn't try to login if the session was unauthenticated.
> This has the side effect of making RememberMe autoLogin mode unusable unless we put Identity.tryLogin() on each page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list