blob: c5cb67897dfe93d37501813affed6138254e6bfd [file] [log] [blame]
<%--
~ 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="/ki.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 <ki: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;">
<ki:hasRole name="role1">You have role 1.<br/></ki:hasRole>
<ki:lacksRole name="role1">You do not have role 1.<br/></ki:lacksRole>
<ki:hasRole name="role2">You have role 2.<br/></ki:hasRole>
<ki:lacksRole name="role2">You do not have role 2.<br/></ki:lacksRole>
</p>
<p style="font-weight: bold;">
<ki:hasPermission name="permission1">You have permission 1.<br/></ki:hasPermission>
<ki:lacksPermission name="permission1">You do not have permission 1.<br/></ki:lacksPermission>
<ki:hasPermission name="permission2">You have permission 2.<br/></ki:hasPermission>
<ki:lacksPermission name="permission2">You do not have permission 2.<br/></ki: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/ki.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>