Hi Friends,
I want to use LoginContext in the servlet as follows:
LoginContext ctx = new LoginContext("system", new MyCallbackHandler("root", "pramati"));
ctx.login();
Well, I can logon very successfully without any LoginException thrown. The problem is, after this servlet is executed, I try to access any resource which is secured (added to security-constraints in web.xml), the container redirects me to Login.jsp, considering that the login is not yet done.
In short, I want to programmatically logon rather than using j_security_check.
Thanks in Advance
Regards
Muhammed Shakir
-
Using LoginContext in a servlet (1 messages)
- Posted by: Muhammed Shakir Misarwala
- Posted on: December 04 2004 03:13 EST
Threaded Messages (1)
- I'd be interested in this code.. by David Yutzy on December 04 2004 07:45 EST
-
I'd be interested in this code..[ Go to top ]
- Posted by: David Yutzy
- Posted on: December 04 2004 07:45 EST
- in response to Muhammed Shakir Misarwala
I've been researching this myself, could you send me some code?