Certainly, the Identity is never used.

My authentication process is three step.

1.Tomcat Authentication

used by FORM:org.jboss.web.tomcat.security.ExtendedFormAuthenticator

2.Seam Authentication

used by Identity:SessionManager class

3.Own application Authentication

used by RDB:Authenticator class


  | @Name("sessionManager")
  | @Scope(SESSION)
  | @Synchronized(timeout=180000)
  | public class SessionManagerBean implements Serializable {
  |     /**
  |      * 
  |      */
  |     private static final long serialVersionUID = -498083799492085969L;
  | 
  |     @Logger
  |     Log log;
  | 
  |     @In
  |     Identity identity;
  |     
  |     @In private Context sessionContext;
  | 
  |     private long sessionTimeout = Long.parseLong(PropertiesManager
  |                     .getProperty("SESSION_TIMEOUT"));
  | 
  |     private boolean displayTree = true;
  |     
  |     public String logout() {
  |             log.debug(">>>session manager : logout");
  |             
  |             String scAll[] = sessionContext.getNames();
  |             for(int i=0;i<scAll.length;i++){
  |                     if(!scAll.equalsIgnoreCase("identity")){
  |                             sessionContext.remove(scAll);
  |                     }
  |             }
  |             sessionContext.flush();
  |             
  |             identity.logout();
  |             return "/current-select.xhtml";
  |     }
  | 
  |     public void login() {
  |             log.debug(">>>session manager : login");
  |             identity.login();
  |     }
  | 
  | 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126425
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to