3 Replies Latest reply on Apr 5, 2004 9:23 AM by Eleas

    Login as new user from login module

    sys user Master

      When some user try to login, he should come throw my own login module. This module needs to obtain information from EJB as, for example, `internal' user, so login module should in turn login as `internal' .

      When I try to execute first LoginContext.login() (as `user'), it enters in my login module where I try to execute second LoginContext.login() (as `internal'). There are no errors after login() was executed, but when I try to use EJB as `internal' (after second login), I have a SecurityException.

      How can I implement this (If I understood previous posts correctly, I couldn't use doAs for executing code as `internal')?