| <%-- |
| ~ Licensed to the Apache Software Foundation (ASF) under one |
| ~ or more contributor license agreements. See the NOTICE file |
| ~ distributed with this work for additional information |
| ~ regarding copyright ownership. The ASF licenses this file |
| ~ to you under the Apache License, Version 2.0 (the |
| ~ "License"); you may not use this file except in compliance |
| ~ with the License. You may obtain a copy of the License at |
| ~ |
| ~ http://www.apache.org/licenses/LICENSE-2.0 |
| ~ |
| ~ Unless required by applicable law or agreed to in writing, |
| ~ software distributed under the License is distributed on an |
| ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| ~ KIND, either express or implied. See the License for the |
| ~ specific language governing permissions and limitations |
| ~ under the License. |
| --%> |
| <%@ include file="include.jsp" %> |
| |
| <html> |
| |
| <head> |
| <link type="text/css" rel="stylesheet" href="<c:url value="/jsecurity.css"/>"/> |
| </head> |
| |
| <body> |
| |
| <div id="contentBox"> |
| <img src="<c:url value="/logo.png"/>" style="margin-top:20px; border:0"/><br/> |
| |
| <h2>You have successfully logged in as <jsecurity:principal/>.</h2> |
| |
| Session ID: ${subjectSession.id} |
| |
| <h3>Session Attribute Keys</h3> |
| <ul> |
| <c:forEach items="${subjectSession.attributeKeys}" var="key"> |
| <li>${key}</li> |
| </c:forEach> |
| </ul> |
| |
| <p style="font-weight: bold;"> |
| <jsecurity:hasRole name="role1">You have role 1.<br/></jsecurity:hasRole> |
| <jsecurity:lacksRole name="role1">You do not have role 1.<br/></jsecurity:lacksRole> |
| <jsecurity:hasRole name="role2">You have role 2.<br/></jsecurity:hasRole> |
| <jsecurity:lacksRole name="role2">You do not have role 2.<br/></jsecurity:lacksRole> |
| </p> |
| |
| <p style="font-weight: bold;"> |
| <jsecurity:hasPermission name="permission1">You have permission 1.<br/></jsecurity:hasPermission> |
| <jsecurity:lacksPermission name="permission1">You do not have permission 1.<br/></jsecurity:lacksPermission> |
| <jsecurity:hasPermission name="permission2">You have permission 2.<br/></jsecurity:hasPermission> |
| <jsecurity:lacksPermission name="permission2">You do not have permission 2.<br/></jsecurity:lacksPermission> |
| </p> |
| |
| |
| <form action="<c:url value="/s/index"/>" method="POST"> |
| Enter value here to store in session: <input type="text" name="value" value="${command.value}" size="30"/> |
| <input type="submit" value="Save"/> |
| <button type="button" onclick="document.location.href='<c:url value="/s/index"/>';">Refresh</button> |
| </form> |
| |
| |
| <p> |
| Click <a href="<c:url value="/s/jsecurity.jnlp?sessionId=${subjectSession.id}"/>">here</a> to launch webstart |
| application. |
| </p> |
| |
| |
| <p> |
| Click <a href="<c:url value="/s/logout"/>">here</a> to logout. |
| </p> |
| </div> |
| </body> |
| </html> |