[PORTAL-7] Rebase
[portal.git] / ecomp-portal-BE-os / src / main / webapp / WEB-INF / jsp / oid-login.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="Login"/>
25 <div class="container-fluid main">
26         <div class="row-fluid">
27                 <div class="span10 offset1">
28
29                         <h2>Welcome to ECOMP Portal OpenId Login</h2>
30                         
31                         <p>
32                                 Please provide the URI for your <code>OpenId Authorization Server</code>. Make sure the OpenId Connect Server is Running on the following location 
33                         </p>
34                         
35                         <p>
36                                 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.
37                         </p>
38                         
39                         <p>
40                                 Simply clone on your local, go to sub-project directory called 'openid-connect-server-webapp' and do 
41                                 
42                                 <code>mvn jetty:run</code>                              
43                                   
44                         </p>
45                                                 
46                         <p>
47                                 Choose a different port using the jetty plugin inside pom.xml, if the default 8080 is already taken by your Application.
48                         </p>
49                         
50                         
51                         
52                         <div class="well">
53                                 <div class="row-fluid">
54         
55                                         <div class="span8">
56                                                 <form action="openid_connect_login" method="get">
57                                                         <input type="text" class="input-xxlarge" name="identifier" id="identifier" value = "http://localhost:8383/openid-connect-server-webapp/" />
58                                                         <input type="submit" value="Log In" />
59                                                 </form>
60                                         </div>
61                                 </div>
62                 </div>
63         </div>
64 </div>
65
66 <script type="text/javascript">
67         $(document).ready(function () {
68                 $('#localhost').on('click', function() {
69                         $('#identifier').val('http://localhost:8383/openid-connect-server-webapp/');
70                 });
71                 $('#mitreidorg').on('click', function() {
72                         $('#identifier').val('user@mitreid.org');
73                 });
74                 
75         });
76 </script>