[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [JBoss-user] Jaas help,
From: kiuma <kiuma () usa ! net>
Date: 2003-05-29 10:14:28
[Download RAW message or body]
Hello,
I have two questions
1) I have a FORM based auth that does the following
public class LoginProxyServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse
response)
throws javax.servlet.ServletException, java.io.IOException {
response.setContentType("text/plain");
java.io.PrintWriter out = response.getWriter();
HttpSession hSession = request.getSession();
Object done = hSession.getAttribute("logon.isDone");
if ( done == null ) {
hSession.setAttribute( "login.target",
request.getRequestURL().toString() );
response.sendRedirect("login-jetty.jsp");
return;
}
}
public String getServletInfo() {
return "Login servlet";
}
}
But when I try to login, I'm redirected where the servlet is mapped :
*http://localhost:8080/progettoblu/do.login
*2) To do the athentication I'm using LoginContext lc = new
LoginContext(........
This technique doesn't seem to affect JaasSecurityManager because the
login cache is empty even after the login.
What shoud I do to affect the login cache?
Thx,
kiuma
[Attachment #3 (text/html)]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
Hello,<br>
I have two questions<br>
1) I have a FORM based auth that does the following<br>
<br>
public class LoginProxyServlet extends HttpServlet {<br>
<br>
<br>
<br>
public void doGet(HttpServletRequest request, HttpServletResponse
response) <br>
throws \
javax.servlet.ServletException, java.io.IOException {<br> \
response.setContentType("text/plain");<br> \
java.io.PrintWriter out = \
response.getWriter();<br> <br>
HttpSession hSession = \
request.getSession();<br> <br>
Object done = \
hSession.getAttribute("logon.isDone");<br> \
<br> if ( done == null ) \
{ <br> \
\
hSession.setAttribute( "login.target",<br> \
\
request.getRequestURL().toString() );<br> \
\
response.sendRedirect("login-jetty.jsp");<br> \
return;<br> \
}<br> <br>
}<br>
<br>
public String getServletInfo() {<br>
return "Login servlet";<br>
}<br>
}<br>
<br>
But when I try to login, I'm redirected where the servlet is mapped : <b><a \
class="moz-txt-link-freetext" \
href="http://localhost:8080/progettoblu/do.login">http://localhost:8080/progettoblu/do.login</a><br>
<br>
</b>2) To do the athentication I'm using LoginContext lc = new
LoginContext(........<br>
<br>
<br>
This technique doesn't seem to affect JaasSecurityManager because the
login cache is empty even after the login.<br>
What shoud I do to affect the login cache?<br>
<br>
<br>
Thx,<br>
<br>
kiuma<br>
</body>
</html>
-------------------------------------------------------
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic