nexus site path corrected
[portal.git] / ecomp-portal-BE-os / src / main / webapp / WEB-INF / jsp / oid-admin.jsp
1 <%--
2   ================================================================================
3   eCOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   --%>
20 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
21 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
22 <%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
23 <%@ taglib prefix="o" tagdir="/WEB-INF/tags"%>
24 <o:header title="Admin"/>
25 <o:topbar pageName="Admin"/>
26 <div class="container-fluid main">
27         <div class="row-fluid">
28                 <div class="span10 offset1">
29
30                         <h1>Hello ${ userInfo.name }</h1>
31
32                         <div>
33                                 <p>This page requires that the user be logged in with a valid account and the <code>ROLE_ADMIN</code> Spring Security authority.
34                                 If you are reading this page, <span class="text-success">you are currently logged in as an administrator</span>.</p>
35
36                                 <p>The authorization provider will assign your account a set of authorities depending on how it's configured.
37                                 Your current login has the following Spring Security authorities:</p>
38                                 
39                                 <ul>
40                                         <security:authentication property="authorities" var="authorities" />
41                                         <c:forEach items="${authorities}" var="auth">
42                                                 <li><code>${ auth }</code></li>
43                                         </c:forEach>
44                                 </ul>
45                                 
46                         </div>
47                         <div>
48                                 <h3>Administrators</h3>
49                                 
50                                 <p>Logged in users are assigned the <code>ROLE_USER</code> authority by default, but the following users
51                                  (identified by issuer/subject pairs) will also be given <code>ROLE_ADMIN</code>:</p>
52                                 
53                                 <table class="table table-striped table-hover span4">
54                                         <tr>
55                                                 <th>Issuer</th>
56                                                 <th>Subject</th>
57                                         </tr>
58                                         <c:forEach items="${ admins }" var="admin">
59                                                 <tr>
60                                                         <td>${ admin.issuer }</td>
61                                                         <td>${ admin.subject }</td>
62                                                 </tr>
63                                         </c:forEach>
64                                 </table>
65                         </div>
66
67                 </div>
68         </div>
69 </div>
70
71
72 <o:footer />