Authorization failures return 403 with cookie populated. This forces the user to...
[controller.git] / opendaylight / web / troubleshoot / src / main / resources / WEB-INF / jsp / autherror.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 <%@ page import="java.net.URL" %>
3 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
4
5 <!DOCTYPE html>
6 <html>
7   <head>
8     <meta charset="utf-8">
9
10     <!-- Bootstrap CSS - 1 -->
11     <link href="/css/bootstrap.min.css" rel="stylesheet" media="screen">
12     
13     <!-- Login CSS - 2 -->
14     <link rel="stylesheet/less" type="text/css" href="/css/login.less">
15
16 <c:set var="title" value="OpenDaylight login error" scope="application"/>
17 <%
18         if (session != null) session.invalidate();
19     String filePath = "/WEB-INF/jsp/customerror.jsp"; 
20         URL fileURL = pageContext.getServletContext().getResource(filePath);
21         if(fileURL!=null) {
22 %>
23           <jsp:include page="<%=filePath%>" flush="true"/>
24 <% } %>
25         <title>${title}</title>
26     <!-- Bootstrap JS - 1 -->
27     <script src="/js/bootstrap.min.js"></script>
28     
29     <!-- LESS - 2 -->
30     <script type="text/javascript">
31         less = {
32             env: "production"
33         };
34     </script>
35     <script src="/js/less-1.3.3.min.js"></script>
36 </head>
37 <body>
38         <form action="<c:url value='/' />" id="form" method="post">
39
40   <div class="container">
41     <div class="content">
42        <div class="login-form">
43          <div id="logo"></div>
44            <fieldset>
45             <p>You are not authorized to access this resource.<p>
46             <p>Please contact your administrator to resolve your Role privileges.</p>
47             <br/>
48              <button class="btn btn-primary" type="submit" value="Log In" >Go To Login Page</button>
49            </fieldset>
50        </div>
51     </div>
52   </div> 
53   </form>
54 </body>
55 </html>