Replace ecomp references
[portal.git] / ecomp-portal-BE-os / src / main / webapp / WEB-INF / jsp / oid-login.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="Login"/>
43 <div class="container-fluid main">
44         <div class="row-fluid">
45                 <div class="span10 offset1">
46
47                         <h2>Welcome to ECOMP Portal OpenId Login</h2>
48                         
49                         <p>
50                                 Please provide the URI for your <code>OpenId Authorization Server</code>. Make sure the OpenId Connect Server is Running on the following location 
51                         </p>
52                         
53                         <p>
54                                 If you do not have one of your own, for a quick start up, you can clone from <a href='https://github.com/mitreid-connect/OpenID-Connect-Java-Spring-Server'>this</a> github location - It's an open source OpenID Connect Server.
55                         </p>
56                         
57                         <p>
58                                 Simply clone on your local, go to sub-project directory called 'openid-connect-server-webapp' and do 
59                                 
60                                 <code>mvn jetty:run</code>                              
61                                   
62                         </p>
63                                                 
64                         <p>
65                                 Choose a different port using the jetty plugin inside pom.xml, if the default 8080 is already taken by your Application.
66                         </p>
67                         
68                         
69                         
70                         <div class="well">
71                                 <div class="row-fluid">
72         
73                                         <div class="span8">
74                                                 <form action="openid_connect_login" method="get">
75                                                         <input type="text" class="input-xxlarge" name="identifier" id="identifier" value = "http://localhost:8383/openid-connect-server-webapp/" />
76                                                         <input type="submit" value="Log In" />
77                                                 </form>
78                                         </div>
79                                 </div>
80                 </div>
81         </div>
82 </div>
83
84 <script type="text/javascript">
85         $(document).ready(function () {
86                 $('#localhost').on('click', function() {
87                         $('#identifier').val('http://localhost:8383/openid-connect-server-webapp/');
88                 });
89                 $('#mitreidorg').on('click', function() {
90                         $('#identifier').val('user@mitreid.org');
91                 });
92                 
93         });
94 </script>