Add PreAuth Xml sample project

Closes gh-26
This commit is contained in:
Marcus Da Coregio
2021-07-23 14:15:37 -03:00
parent cb5b762681
commit def1af3e75
16 changed files with 523 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<html>
<body>
<h1>VERY Secure Page</h1>
This is a protected page. You can only see me if you are a supervisor.
<p><a href="../../">Home</a>
<p><a href="../../logout">Logout</a>
</body>
</html>

View File

@@ -0,0 +1,15 @@
<html>
<body>
<h1>Secure Page</h1>
This is a protected page. You can get to me if you've been remembered,
or if you've authenticated this session.<br><br>
<%if (request.isUserInRole("ROLE_SUPERVISOR")) { %>
You are a supervisor! You can therefore see the <a href="extreme/index.jsp">extremely secure page</a>.<br><br>
<% } %>
<p><a href="../">Home</a>
<p><a href="../logout">Logout</a>
</body>
</html>