From 06bff82f606db521b202b9bb2ec893d0c0489796 Mon Sep 17 00:00:00 2001 From: maxcooper Date: Tue, 22 Feb 2005 12:26:11 +0000 Subject: [PATCH] added FlexibleRealmInterface --- .../WEB-INF/securityfilter-config.xml | 42 +++++++++++++++++++ web/flexible-example/loginForm.jsp | 48 ++++++++++++++++++++++ web/flexible-example/menu.jsp | 8 ++++ 3 files changed, 98 insertions(+) create mode 100644 web/flexible-example/WEB-INF/securityfilter-config.xml create mode 100644 web/flexible-example/loginForm.jsp create mode 100644 web/flexible-example/menu.jsp diff --git a/web/flexible-example/WEB-INF/securityfilter-config.xml b/web/flexible-example/WEB-INF/securityfilter-config.xml new file mode 100644 index 0000000..2211883 --- /dev/null +++ b/web/flexible-example/WEB-INF/securityfilter-config.xml @@ -0,0 +1,42 @@ + + + + + + + + + Secure Page + /securePage.jsp + + + inthisrole + + + + + + Secure page that the example user is not authorized to view + /forbiddenPage.jsp + + + notinthisrole + + + + + FORM + + /loginForm.jsp + /loginError.jsp + /index.jsp + + + + + + + + \ No newline at end of file diff --git a/web/flexible-example/loginForm.jsp b/web/flexible-example/loginForm.jsp new file mode 100644 index 0000000..c04f078 --- /dev/null +++ b/web/flexible-example/loginForm.jsp @@ -0,0 +1,48 @@ +<%@ page import="org.securityfilter.example.Constants"%> + + + + +<%=Constants.LOGIN_TITLE%> + + + +

<%=Constants.LOGIN_TITLE%>

+ +<%@include file="/menu.jsp" %> + +Login with authentication data <%=Constants.VALID_USERNAME%>:<%=Constants.VALID_PASSWORD%>. Note this is a very simple example - you could be passing anything in the POST (id number from dongle, SAML assertion, et cetera) and validation can occur on anything available in the HTTP request (originating IP address, asserted browser type, et cetera). + +
+ +Authentication data: +

+ + + +

+ +You can also login with normal j_username and j_password parameters - here j_username=<%=Constants.VALID_USERNAME%> and j_password=<%=Constants.VALID_PASSWORD%>. + +
+ +Username: +

+ +Password: +

+ + + +

+ + \ No newline at end of file diff --git a/web/flexible-example/menu.jsp b/web/flexible-example/menu.jsp new file mode 100644 index 0000000..546493d --- /dev/null +++ b/web/flexible-example/menu.jsp @@ -0,0 +1,8 @@ +

+Navigation Menu: [ +">Home +| ">Secure Page +| ">Forbidden Secure Page +| ">Direct Login +| ">Logout +]

-- 2.11.0