You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by dd...@apache.org on 2005/02/10 03:13:24 UTC
svn commit: r153142 - in portals/pluto/trunk/portal/src/webapp:
WEB-INF/web.xml login.jsp
Author: ddewolf
Date: Wed Feb 9 18:13:22 2005
New Revision: 153142
URL: http://svn.apache.org/viewcvs?view=rev&rev=153142
Log:
Resolving PLUTO-71:
-- Thanks Craig Doremus
-- Using form based authentication
-- Adding login.jsp
Added:
portals/pluto/trunk/portal/src/webapp/login.jsp
Modified:
portals/pluto/trunk/portal/src/webapp/WEB-INF/web.xml
Modified: portals/pluto/trunk/portal/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/WEB-INF/web.xml?view=diff&r1=153141&r2=153142
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/WEB-INF/web.xml (original)
+++ portals/pluto/trunk/portal/src/webapp/WEB-INF/web.xml Wed Feb 9 18:13:22 2005
@@ -67,6 +67,7 @@
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
+
<security-constraint>
<web-resource-collection>
<web-resource-name/>
@@ -83,9 +84,13 @@
</user-data-constraint>
</security-constraint>
- <login-config>
- <auth-method>BASIC</auth-method>
- </login-config>
+ <login-config>
+ <auth-method>FORM</auth-method>
+ <form-login-config>
+ <form-login-page>/login.jsp</form-login-page>
+ <form-error-page>/login.jsp?error=1</form-error-page>
+ </form-login-config>
+ </login-config>
<security-role>
<role-name>tomcat</role-name>
Added: portals/pluto/trunk/portal/src/webapp/login.jsp
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/login.jsp?view=auto&rev=153142
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/login.jsp (added)
+++ portals/pluto/trunk/portal/src/webapp/login.jsp Wed Feb 9 18:13:22 2005
@@ -0,0 +1,38 @@
+
+<html>
+<%@ include file="./WEB-INF/aggregation/Head.jsp" %>
+<body marginwidth="0" marginheight="0">
+<%@ include file="./WEB-INF/aggregation/Banner.jsp" %>
+<table>
+<tr><td valign="top" width="150">
+<span class="nav" style="width:150px">
+<a href="/pluto/portal">Pluto Portal Home</a></span>
+</td></tr>
+</table>
+ <div style="width:600px;margin-left:20%;align-text:center">
+ <%
+ if (request.getParameter("error") != null) {
+ %>
+ <p style="color:red;text-align:center">
+ Login failure!. Please try again.
+ </p>
+ <% } %>
+ <p style="font-weight:bold;text-align:center">
+ This is Pluto's login page, which is used in the Test portlet's Security
+ Mapping Test to show that programmatic security as defined in the JSR-168
+ specification (PLT. 20) functions correctly in the Pluto portal.<br/>
+ If you are using an out of the box configuration, you may be able
+ to use tomcat/tomcat to login.
+ </p>
+ <table width="200" border="0">
+ <form method="POST" action="j_security_check">
+
+ <tr><td style="text-align:right">Login name: </td><td><input type="text" name="j_username"></td></tr>
+ <tr><td style="text-align:right">Login password: </td><td><input type="password" name="j_password"></td></tr>
+ <tr><td colspan="2" style="text-align:center"><input type="submit" value="Login"></td></tr>
+ </form>
+ </table>
+ </div>
+
+</body>
+</html>
\ No newline at end of file