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