0 Replies Latest reply on Oct 16, 2002 3:43 PM by Donald

    force login after user registers

    Donald Newbie

      I am using the login-config.xml and doing form based login. In the login-config.xml I am setting up the query to get the user/role from a database

      What I want to do is when a user registers with the application and after I create the account int he database, I want to force the login witht the appserver so on the next page, the user is not directed to the form based auth page.

      I was using
      try {
      com.atlantic.web.util.AppCallBackHandler handler = new com.atlantic.web.util.AppCallBackHandler(username, password);
      oLog.warn("Calling the Context");
      javax.security.auth.login.LoginContext lc = new javax.security.auth.login.LoginContext("adminrole", handler);
      oLog.warn("Got the context of"+ lc);
      oLog.warn("Did Login");
      } catch (javax.security.auth.login.LoginException le) {

      But, I get an error that it is trying to access the .properties files on the login. I though that it just stores the credentials for later when auth is checked?

      Why is it not using the same access as the forme based is using?

      Thanks for any help