[jboss-cvs] jboss-seam/examples/security/view ...
Shane Bryzak
Shane_Bryzak at symantec.com
Mon Jul 31 22:07:06 EDT 2006
User: sbryzak2
Date: 06/07/31 22:07:06
Modified: examples/security/view home.xhtml welcome.xhtml
Added: examples/security/view protected.xhtml
Log:
Simple hard-coded authentication using JBoss login module now works.
TO DO: authenticate against db
Revision Changes Path
1.4 +1 -1 jboss-seam/examples/security/view/home.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: home.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/security/view/home.xhtml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
1.2 +5 -0 jboss-seam/examples/security/view/welcome.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: welcome.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/security/view/welcome.xhtml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- welcome.xhtml 26 Jul 2006 06:03:14 -0000 1.1
+++ welcome.xhtml 1 Aug 2006 02:07:06 -0000 1.2
@@ -10,6 +10,11 @@
<body>
<h1>Login successful!</h1>
+ <h:form>
+ <h:commandButton action="#{protectedAction.foo}" value="Protected action" class="button"/>
+
+ </h:form>
+
</body>
</html>
1.1 date: 2006/08/01 02:07:06; author: sbryzak2; state: Exp;jboss-seam/examples/security/view/protected.xhtml
Index: protected.xhtml
===================================================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html">
<head>
<title>Seam Security</title>
</head>
<body>
<h1>Successfully invoked protected action</h1>
</body>
</html>
More information about the jboss-cvs-commits
mailing list