i have a empty ssoLogin.xhtml
and a ssoLogin.page.xml like this

  | <page>
  |    <navigation from-action="#{identity.login}">
  |       <rule if="#{identity.loggedIn}">
  |          <redirect view-id="/home.xhtml" />
  |       </rule>
  |    </navigation>
  | </page>
  | 

and my authenticator is

  | ......
  | @RequestParameter private Integer userid;
  | public boolean authenticate()
  | {
  |             log.info("authenticating #0", userid);
  |             if(userid != null && userid > 0){
  |                     user = entityManager.find(User.class, userid);
  |                     facesMessages.add("found user = " + user);
  |                     if(user == null){
  |                             facesMessages.add("login failed");
  |                                 return false;
  |                     }else{
  |                             facesMessages.add("login success");
  |                             identity.addRole("user");
  |                                 return true;
  |                     }
  |             }else{
  |                     facesMessages.add("userid empty");
  |                     return false;
  |             }
  | }
  | 

then i try to open ssoLogin.seam?userid=1, it will show me the empty file 
without running authenticate function(no log info, no message, jpda trigger did 
not engage)

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

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

Reply via email to