Adding form based auth

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@818729 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
lresende 2009-09-25 06:01:40 +00:00
parent 4d1c0a9df5
commit ac35ed8648
3 changed files with 36 additions and 2 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>