You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2009/09/25 08:01:40 UTC

svn commit: r818729 - in /tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp: WEB-INF/web.xml auth/ auth/logon.html auth/logonError.html

Author: lresende
Date: Fri Sep 25 06:01:40 2009
New Revision: 818729

URL: http://svn.apache.org/viewvc?rev=818729&view=rev
Log:
Adding form based auth

Added:
    tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/
    tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html   (with props)
    tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html   (with props)
Modified:
    tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/WEB-INF/web.xml

Modified: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/WEB-INF/web.xml?rev=818729&r1=818728&r2=818729&view=diff
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/WEB-INF/web.xml (original)
+++ tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/WEB-INF/web.xml Fri Sep 25 06:01:40 2009
@@ -16,11 +16,20 @@
     <welcome-file>store.html</welcome-file>
   </welcome-file-list>
   
-  <login-config>
+  <!-- login-config>
   	<auth-method>BASIC</auth-method>
   	<realm-name>ldap-realm</realm-name>
-  </login-config>
+  </login-config-->
   
+  <login-config>
+    <auth-method>FORM</auth-method>
+    <realm-name>ldap-realm</realm-name>
+    <form-login-config>
+       <form-login-page>/auth/logon.html</form-login-page>
+       <form-error-page>/auth/logonError.html</form-error-page>
+    </form-login-config>
+  </login-config>
+    
   <security-role>
   	<description>Application managers</description>
   	<role-name>manager</role-name>

Added: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html?rev=818729&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html (added)
+++ tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html Fri Sep 25 06:01:40 2009
@@ -0,0 +1,20 @@
+<HTML>
+<H1>Store Authentication</H1>
+<form method="POST" action="j_security_check">
+<table border="0" cellspacing="2" cellpadding="1">
+<tr>
+  <td>Username:</td>
+  <td><input size="12" value="" name="j_username" maxlength="25" type="text"></td>
+</tr>
+<tr>
+  <td>Password:</td>
+  <td><input size="12" value="" name="j_password" maxlength="25" type="password"></td>
+</tr>
+<tr>
+  <td colspan="2" align="center">
+    <input name="submit" type="submit" value="Login">
+  </td>
+</tr>
+</table>
+</form>
+</HTML>
\ No newline at end of file

Propchange: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logon.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html?rev=818729&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html (added)
+++ tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html Fri Sep 25 06:01:40 2009
@@ -0,0 +1,5 @@
+<HTML>
+<H1>Store Authentication ERROR</H1>
+Username, password or role incorrect.
+ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
+</HTML>
\ No newline at end of file

Propchange: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: tuscany/sandbox/lresende/sca/samples/store-secure-webapp/src/main/webapp/auth/logonError.html
------------------------------------------------------------------------------
    svn:mime-type = text/html