[jboss-user] [JBoss Seam] - Re: login & logout options

rmemoria do-not-reply at jboss.com
Fri Jul 27 08:09:04 EDT 2007


For the login process you may create a bean with a method returning a boolean value and map it in components.xml like that:

 <security:identity authenticate-method="#{authenticator.authenticate}"
  |                            security-rules="#{securityRules}"/>

It'll call the authenticate method of your bean, and you can put your code for the login event.

For the logout you must map the org.jboss.seam.preDestroyContext.SESSION also in components.xml like that:

<event type="org.jboss.seam.preDestroyContext.SESSION">
  | 	<action expression="#{authenticator.logout}"/>
  | </event>

Hope I've helped.

regards,
Ricardo Memória

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068180#4068180

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068180




More information about the jboss-user mailing list