1 Reply Latest reply on Aug 22, 2007 4:45 AM by sailor chibi

    does seam support authenticate from get parameter?

    sailor chibi Newbie

      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)