[jboss-user] [JBoss Seam] - does seam support authenticate from get parameter?

chibi do-not-reply at jboss.com
Wed Aug 22 04:38:14 EDT 2007


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



More information about the jboss-user mailing list