moved web files around
authormaxcooper <maxcooper>
Fri, 7 Feb 2003 10:35:38 +0000 (10:35 +0000)
committermaxcooper <maxcooper>
Fri, 7 Feb 2003 10:35:38 +0000 (10:35 +0000)
web/basic-example/WEB-INF/securityfilter-config.xml [new file with mode: 0644]
web/basic-share/menu.jsp [new file with mode: 0644]
web/form-share/loginError.jsp [new file with mode: 0644]
web/form-share/loginForm.jsp [new file with mode: 0644]
web/form-share/menu.jsp [new file with mode: 0644]
web/share/loginError.jsp [deleted file]
web/share/loginForm.jsp [deleted file]
web/share/menu.jsp [deleted file]

diff --git a/web/basic-example/WEB-INF/securityfilter-config.xml b/web/basic-example/WEB-INF/securityfilter-config.xml
new file mode 100644 (file)
index 0000000..e6dba71
--- /dev/null
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE securityfilter-config PUBLIC
+    "-//SecurityFilter.org//DTD Security Filter Configuration 1.0//EN"
+    "http://www.securityfilter.org/dtd/securityfilter-config_1_0.dtd">
+
+<securityfilter-config>
+
+   <security-constraint>
+      <web-resource-collection>
+         <web-resource-name>Secure Page</web-resource-name>
+         <url-pattern>/securePage.jsp</url-pattern>
+      </web-resource-collection>
+      <auth-constraint>
+         <role-name>inthisrole</role-name>
+      </auth-constraint>
+   </security-constraint>
+
+   <security-constraint>
+      <web-resource-collection>
+         <web-resource-name>Secure page that the example user is not authorized to view</web-resource-name>
+         <url-pattern>/forbiddenPage.jsp</url-pattern>
+      </web-resource-collection>
+      <auth-constraint>
+         <role-name>notinthisrole</role-name>
+      </auth-constraint>
+   </security-constraint>
+
+   <login-config>
+      <auth-method>BASIC</auth-method>
+   </login-config>
+
+   <realm className="org.securityfilter.example.TrivialSecurityRealm">
+      <realm-param name="exampleProperty" value="it works!" />
+   </realm>
+
+</securityfilter-config>
\ No newline at end of file
diff --git a/web/basic-share/menu.jsp b/web/basic-share/menu.jsp
new file mode 100644 (file)
index 0000000..50e7111
--- /dev/null
@@ -0,0 +1,7 @@
+<p>
+Navigation Menu: [
+<a href="index.jsp">Home</a>
+| <a href="securePage.jsp">Secure Page</a>
+| <a href="forbiddenPage.jsp">Forbidden Secure Page</a>
+| <a href="logout.jsp">Logout</a>
+]<p>
diff --git a/web/form-share/loginError.jsp b/web/form-share/loginError.jsp
new file mode 100644 (file)
index 0000000..7eecc0b
--- /dev/null
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>SecurityFilter Example Application: Login Error Page</title>
+</head>
+<body>
+<h1>SecurityFilter Example Application: Login Error Page</h1>
+<%@include file="/menu.jsp" %>
+Bad username/password combination, please <a href="loginForm.jsp">try again</a>.
+</body>
+</html>
\ No newline at end of file
diff --git a/web/form-share/loginForm.jsp b/web/form-share/loginForm.jsp
new file mode 100644 (file)
index 0000000..2964134
--- /dev/null
@@ -0,0 +1,15 @@
+<html>
+<head>
+<title>SecurityFilter Example Application: Login Form</title>
+</head>
+<body>
+<h1>SecurityFilter Example Application: Login Form</h1>
+<%@include file="/menu.jsp" %>
+Login with username=<i>username</i> and password=<i>password</i>.
+<form action="logMeIn" method="POST">
+Username: <input type="text" name="j_username" value="username"><p>
+Password: <input type="password" name="j_password" value="password"><p>
+<input type="Submit">
+</form>
+</body>
+</html>
\ No newline at end of file
diff --git a/web/form-share/menu.jsp b/web/form-share/menu.jsp
new file mode 100644 (file)
index 0000000..3ec9a6f
--- /dev/null
@@ -0,0 +1,8 @@
+<p>
+Navigation Menu: [
+<a href="index.jsp">Home</a>
+| <a href="securePage.jsp">Secure Page</a>
+| <a href="forbiddenPage.jsp">Forbidden Secure Page</a>
+| <a href="loginForm.jsp">Direct Login</a>
+| <a href="logout.jsp">Logout</a>
+]<p>
diff --git a/web/share/loginError.jsp b/web/share/loginError.jsp
deleted file mode 100644 (file)
index 7eecc0b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<html>
-<head>
-<title>SecurityFilter Example Application: Login Error Page</title>
-</head>
-<body>
-<h1>SecurityFilter Example Application: Login Error Page</h1>
-<%@include file="/menu.jsp" %>
-Bad username/password combination, please <a href="loginForm.jsp">try again</a>.
-</body>
-</html>
\ No newline at end of file
diff --git a/web/share/loginForm.jsp b/web/share/loginForm.jsp
deleted file mode 100644 (file)
index 2964134..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<html>
-<head>
-<title>SecurityFilter Example Application: Login Form</title>
-</head>
-<body>
-<h1>SecurityFilter Example Application: Login Form</h1>
-<%@include file="/menu.jsp" %>
-Login with username=<i>username</i> and password=<i>password</i>.
-<form action="logMeIn" method="POST">
-Username: <input type="text" name="j_username" value="username"><p>
-Password: <input type="password" name="j_password" value="password"><p>
-<input type="Submit">
-</form>
-</body>
-</html>
\ No newline at end of file
diff --git a/web/share/menu.jsp b/web/share/menu.jsp
deleted file mode 100644 (file)
index 3ec9a6f..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-<p>
-Navigation Menu: [
-<a href="index.jsp">Home</a>
-| <a href="securePage.jsp">Secure Page</a>
-| <a href="forbiddenPage.jsp">Forbidden Secure Page</a>
-| <a href="loginForm.jsp">Direct Login</a>
-| <a href="logout.jsp">Logout</a>
-]<p>