On further research I found this.
http://jira.jboss.org/jira/browse/JBSEAM-2165
It has been fixed in the new release.
Thanks !!!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4111045#4111045
Reply to the post :
You explained it the right way - as I said there is no guarantee that your
authenticate method (loginBean.login) will only be called once by Seam's
security API.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109516#4109516
Reply to the post :
I think I put it the wrong way.
What I meant to say is i have mapped
| security:identity authenticate-method=#{loginBean.login}/
|
and the loginBean.login method is something like
| public boolean login(){
| boolean succeeded = loginAction.login();
| return succeeded;
| }
Thanks Shane.
I see one more behavior
When i provide the wrong username or password, my configured login method is
being called twice. On debugging I see that the method authenticate of Identity
class
| public void authenticate()
| throws LoginException
|{
| // If
This is normal also - there is no guarantee as to how many times your
authenticate method is called. If you need to perform certain actions when
authentication is successful then use an event.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4109073#4109073
Write an event observer for org.jboss.seam.loggedOut, this event is raised
when Identity.logout() is called.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108686#4108686
Reply to the post :
Thanks, it worked. I had another question too...
I am configuring my identity.login to loginBean.login and my loginBean class is
like
| import org.jboss.seam.annotations.In;
| import org.jboss.seam.annotations.Name;
|
| @Name(loginBean)
| public class LoginBean {
|
|
That is normal behaviour. The password is cleared after successful
authentication.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4108750#4108750
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4108750
I use an entry like this in pages.xml:
page view-id=*
| navigation from-action=#{identity.logout}
| redirect view-id=/home.xhtml/
| /navigation
| /page
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045234#4045234
Thanks!
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4045237#4045237
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4045237
___
jboss-user mailing list
jboss-user@lists.jboss.org
10 matches
Mail list logo