Sample form login for JAAS
authorcantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 17 Apr 2004 22:16:53 +0000 (22:16 +0000)
committercantor <cantor@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Sat, 17 Apr 2004 22:16:53 +0000 (22:16 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@996 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

webApplication/login-error.jsp [new file with mode: 0644]
webApplication/login.css [new file with mode: 0644]
webApplication/login.jsp [new file with mode: 0644]

diff --git a/webApplication/login-error.jsp b/webApplication/login-error.jsp
new file mode 100644 (file)
index 0000000..fee766c
--- /dev/null
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <style type="text/css" title="styled">
+                       @import url('login.css');
+               </style>
+
+               <title>Example Organization WebLogin</title>
+       </head>
+       <body>   
+               <div id="page">
+                       <div id="head">
+                               <h1>Example Organization</h1>
+                       </div>
+
+                       <div id="main">
+                               <div id="content">
+                                       <p> 
+                                       Please login:
+                                       </p>
+                                       <form method="post" action="j_security_check">
+                                               <table class="login">
+                                                       <tr class="login">
+                                                               <td colspan="3" class="login"><span class="errortext">Incorrect Username or Password.  Please try again.</span></td>
+                                                       </tr>
+                                                       <tr class="login">
+                                                               <td class="login"><strong>UID</strong></td>
+                                                               <td class="login"><input name="j_username" type="text" id="j_username" size="16" /></td></tr>
+                                                       <tr class="login">
+                                                               <td class="login">
+                                                                       <strong>Password</strong>
+                                                               </td>
+
+                                                               <td class="login">
+                                                                       <input name="j_password" type= "password" id="j_password" size= "16" /></td>
+                                                               <td class="login">
+                                                                       <input name="Login" type="submit" id="Login" value="Login" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </form>
+
+                               </div>
+                               <div id="helptext">
+                                       <p>
+                                       The resource that you have attempted to access requires that you log in with your with your Example Organization UID.
+                                       </p>
+                               </div>
+
+                       </div>
+               </div>
+       </body>
+</html>
diff --git a/webApplication/login.css b/webApplication/login.css
new file mode 100644 (file)
index 0000000..2280dd1
--- /dev/null
@@ -0,0 +1,90 @@
+body {
+       font-family: sans-serif, helvetica, arial, verdana;
+       font-size:1em;
+       color:black;
+       background-color: #eeeeee;
+}
+
+#page {
+       margin-top: 2em;
+       margin-left: auto;
+       margin-right: auto;
+       width: 40em;
+       border-style: solid;
+       border-color: black;
+       border-width: 2px;
+       background-color: #a3a9b7;
+}
+
+#head {
+       background-color: #798399;
+       margin: 0;
+       color: #eeeeee;
+       border-bottom: 2px solid black;
+       width: 100%;
+       text-align: right;
+       padding-top: .2em;
+       padding-bottom: .2em;
+}
+
+#helptext {
+       border-style: solid;
+       border-top-width: 1px;
+       border-bottom-width: 2px;
+       border-left-width: 2px;
+       border-right-width: 2px;
+       background-color: #eeeeee;
+       margin: 0;
+       padding-top: .3em;
+       padding-left: 1.5em;
+       padding-right: 1.5em;
+       padding-bottom: .5em;
+       font-size: .75em;
+}
+
+#helptext dd {
+       margin-bottom: .75em;
+       margin-top: .2em;
+}
+
+h1 {
+       display: inline;
+       font-weight: bold;
+       font-size: 1.1em;
+       padding-right: 1em;
+}
+
+#content {     
+       border: 2px solid black;
+       background-color: #eeeeee;
+       padding: 3%;
+}
+
+#content a {
+       color: #5b6475;
+}
+
+#main {
+       margin: 6%;
+}
+
+table {
+       border: none;
+       border-collapse: collapse;
+       table-layout: auto;
+} 
+
+td {
+       border: none;
+       text-align:left;
+       padding-left: .7em;
+       padding-right: .7em;
+       padding-top: .3em;
+       padding-bottom: .3em;
+       line-height: 1.3em;
+} 
+
+span.errortext {
+       color: #990000;
+       font-size: .75em;
+}
diff --git a/webApplication/login.jsp b/webApplication/login.jsp
new file mode 100644 (file)
index 0000000..754b50d
--- /dev/null
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+       <head>
+               <style type="text/css" title="styled">
+                       @import url('login.css');
+               </style>
+
+               <title>Example Organization WebLogin</title>
+       </head>
+       <body>   
+               <div id="page">
+                       <div id="head">
+                               <h1>Example Organization</h1>
+                       </div>
+
+                       <div id="main">
+                               <div id="content">
+                                       <p> 
+                                       Please login:
+                                       </p>
+                                       <form method="post" action="j_security_check">
+                                               <table class="login">
+                                                       <tr class="login">
+                                                               <td class="login"><strong>UID</strong></td>
+                                                               <td class="login"><input name="j_username" type="text" id="j_username" size="16" /></td></tr>
+                                                       <tr class="login">
+                                                               <td class="login">
+                                                                       <strong>Password</strong>
+                                                               </td>
+
+                                                               <td class="login">
+                                                                       <input name="j_password" type= "password" id="j_password" size= "16" /></td>
+                                                               <td class="login">
+                                                                       <input name="Login" type="submit" id="Login" value="Login" />
+                                                               </td>
+                                                       </tr>
+                                               </table>
+                                       </form>
+
+                               </div>
+                               <div id="helptext">
+                                       <p>
+                                       The resource that you have attempted to access requires that you log in with your with your Example Organization UID.
+                                       </p>
+                               </div>
+
+                       </div>
+               </div>
+       </body>
+</html>