1 Reply Latest reply on Jun 1, 2006 7:52 AM by Andrzej Smolinski

    Custom Authentication

    Don Hill Newbie

      Is there a way to use custom authentication within jboss so that all request will have a principal assocaited with them, I am trying to get around the j2ee security constraint, what I mean is I don't want to have to use this method, I would like to just call a JBossAuthenticator in my login portlet and then be authenticated.

        • 1. Re: Custom Authentication
          Andrzej Smolinski Newbie

          that's the same I want to get working in my app as well.
          any help really appreciated. I found how to login using JASS, but after that my web session is still unathenticated!!!!

          see:
          UsernamePasswordHandler handler = null;
          handler = new UsernamePasswordHandler(getUserName(), getUserPassword());
          try {
          LoginContext lc = new LoginContext("webshop", handler);
          lc.login();

          System.out.println("user: " + FacesContext.getCurrentInstance().getExternalContext().getRemoteUser());
          } catch (LoginException e) {
          e.printStackTrace();
          }