From 4ad39a5c96dd99acf819ce189b13fec946d7506b Mon Sep 17 00:00:00 2001 From: talasila Date: Tue, 7 Feb 2017 15:03:57 -0500 Subject: Initial OpenECOMP Portal commit Change-Id: I804b80e0830c092e307da1599bd9fbb5c3e2da77 Signed-off-by: talasila --- ecomp-portal-BE/war/WEB-INF/jsp/error.jsp | 20 + ecomp-portal-BE/war/WEB-INF/jsp/index.jsp | 21 + ecomp-portal-BE/war/WEB-INF/jsp/login.jsp | 152 ++++++ ecomp-portal-BE/war/WEB-INF/jsp/oid-admin.jsp | 72 +++ ecomp-portal-BE/war/WEB-INF/jsp/oid-home.jsp | 102 ++++ ecomp-portal-BE/war/WEB-INF/jsp/oid-login.jsp | 76 +++ ecomp-portal-BE/war/WEB-INF/jsp/oid-user.jsp | 139 ++++++ ecomp-portal-BE/war/WEB-INF/jsp/welcome.jsp | 695 ++++++++++++++++++++++++++ 8 files changed, 1277 insertions(+) create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/error.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/index.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/login.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/oid-admin.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/oid-home.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/oid-login.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/oid-user.jsp create mode 100644 ecomp-portal-BE/war/WEB-INF/jsp/welcome.jsp (limited to 'ecomp-portal-BE/war/WEB-INF/jsp') diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/error.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/error.jsp new file mode 100644 index 00000000..c79aa89a --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/error.jsp @@ -0,0 +1,20 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +${errMsg} diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/index.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/index.jsp new file mode 100644 index 00000000..4726ce19 --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/index.jsp @@ -0,0 +1,21 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/login.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/login.jsp new file mode 100644 index 00000000..bdffc734 --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/login.jsp @@ -0,0 +1,152 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ page import="org.openecomp.portalsdk.core.util.SystemProperties" %> +<%@ page import="org.openecomp.portalapp.portal.utils.EPSystemProperties" %> + +" /> + + + + + + + Login + + + + + + + + + + + + + + + + + + <% + String frontUrl = SystemProperties.getProperty(EPSystemProperties.FE_URL); + %> +
+
+ +
+
+ +
+ + +
+
+ + +
+
+                + +
+
+
+






+
+ + + + diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/oid-admin.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/oid-admin.jsp new file mode 100644 index 00000000..93fd69ce --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/oid-admin.jsp @@ -0,0 +1,72 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> +<%@ taglib prefix="o" tagdir="/WEB-INF/tags"%> + + +
+
+
+ +

Hello ${ userInfo.name }

+ +
+

This page requires that the user be logged in with a valid account and the ROLE_ADMIN Spring Security authority. + If you are reading this page, you are currently logged in as an administrator.

+ +

The authorization provider will assign your account a set of authorities depending on how it's configured. + Your current login has the following Spring Security authorities:

+ +
    + + +
  • ${ auth }
  • +
    +
+ +
+
+

Administrators

+ +

Logged in users are assigned the ROLE_USER authority by default, but the following users + (identified by issuer/subject pairs) will also be given ROLE_ADMIN:

+ + + + + + + + + + + + +
IssuerSubject
${ admin.issuer }${ admin.subject }
+
+ +
+
+
+ + + diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/oid-home.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/oid-home.jsp new file mode 100644 index 00000000..9fd11036 --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/oid-home.jsp @@ -0,0 +1,102 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> +<%@ taglib prefix="o" tagdir="/WEB-INF/tags"%> +<%@ page session="false" %> + + +
+
+
+ +

+ Hello world! +

+ +
+

+ + You are currently logged in. + + + You are NOT currently logged in. + +

+ +

This example application is configured with several pages requiring different levels of access. + This page does not require the user to be logged in. Use the tabs in the navbar above to navigate to + pages with different access requirements. +

+ +
    +
  • User, requires the user to be logged in with the ROLE_USER Spring Security authority.
  • +
  • Admin, requires the user to be logged in with the ROLE_ADMIN Spring Security authority. + See below for the currently configured list of admin accounts.
  • + +
  • Logout, log out directly and return to this page.
  • +
    + +
  • Log in, log in directly and return to this page.
  • +
    +
+ + +
+ +
+

Client Filter Configuration

+ +

This authorization filter for this client has been configured with the following components:

+ +
    +
  • Issuer service: ${ issuerServiceClass }
  • +
  • Server configuration service: ${ serverConfigurationServiceClass }
  • +
  • Client configuration service: ${ clientConfigurationServiceClass }
  • +
  • Auth request options service: ${ authRequestOptionsServiceClass }
  • +
  • Auth request URI builder: ${ authRequestUriBuilderClass }
  • +
+
+ +
+

Administrators

+ +

Logged in users are assigned the ROLE_USER authority by default, but the following users + (identified by issuer/subject pairs) will also be given ROLE_ADMIN:

+ + + + + + + + + + + + +
IssuerSubject
${ admin.issuer }${ admin.subject }
+
+
+
+
+ + + diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/oid-login.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/oid-login.jsp new file mode 100644 index 00000000..cf2f9bcc --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/oid-login.jsp @@ -0,0 +1,76 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> +<%@ taglib prefix="o" tagdir="/WEB-INF/tags"%> + +
+
+
+ +

Welcome to ECOMP Portal OpenId Login

+ +

+ Please provide the URI for your OpenId Authorization Server. Make sure the OpenId Connect Server is Running on the following location +

+ +

+ If you do not have one of your own, for a quick start up, you can clone from this github location - It's an open source OpenID Connect Server. +

+ +

+ Simply clone on your local, go to sub-project directory called 'openid-connect-server-webapp' and do + + mvn jetty:run + +

+ +

+ Choose a different port using the jetty plugin inside pom.xml, if the default 8080 is already taken by your Application. +

+ + + +
+
+ +
+
+ + +
+
+
+
+
+
+ + diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/oid-user.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/oid-user.jsp new file mode 100644 index 00000000..112415b0 --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/oid-user.jsp @@ -0,0 +1,139 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> +<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %> +<%@ taglib prefix="o" tagdir="/WEB-INF/tags"%> + + +
+
+
+ +

Hello ${ userInfo.name }

+ +
+

This page requires that the user be logged in with a valid account and the ROLE_USER Spring Security authority. + If you are reading this page, you are currently logged in.

+ + + +

The authorization provider will create a Principal object based on the iss and sub + claims associated with your ID token. This value can be used as a globally unique username within the application + (though it's not meant to be human-readable). + Your Principal is: ${ user }

+ +

The authorization provider will assign your account a set of authorities depending on how it's configured. + Your current login has the following Spring Security authorities:

+ +
    + + +
  • ${ auth }
  • +
    +
+ +

ID Token

+ +

Your ID Token has the following set of claims:

+ + + + + + + + + + + +
NameValue
+ +

The ID Token header contains the following claims:

+ + + + + + + + + + +
NameValue
+ +

User Info

+ +

The call to the User Info Endpoint returned the following set of claims:

+ + + + + + + + + + +
NameValue
+ +
+ +
+
+
+ + + + diff --git a/ecomp-portal-BE/war/WEB-INF/jsp/welcome.jsp b/ecomp-portal-BE/war/WEB-INF/jsp/welcome.jsp new file mode 100644 index 00000000..054c38fe --- /dev/null +++ b/ecomp-portal-BE/war/WEB-INF/jsp/welcome.jsp @@ -0,0 +1,695 @@ +<%-- + ================================================================================ + eCOMP Portal + ================================================================================ + Copyright (C) 2017 AT&T Intellectual Property + ================================================================================ + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ================================================================================ + --%> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> +<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> +<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ Welcome ${sessionScope.user.firstName} ${sessionScope.user.lastName}  + (Last Login:  ${lastLogin}) +
+ +
+

Network

+

Visualization

+ +
+ + +
+

+ You can toggle between the Image Slider and Carousel controls by clicking on the respective radio button below: +

+ Slider
+ Carousel + +
+
+ +
+ +
+
+ Drive test analytics + MTSA - Nationwide DL throughput for iOS devices over cellular network + Location based services county level drive test + Network demand data by LATA (2020 forecast) + Linear regression prediction of LBS/E911 drive test accuracy + SDN Simulator - SNRC Traffic + (Click on Image to Rotate) +
+
+
+
+
+
+ Drive test analytics +
+

Drive test analytics

+
+
+
+ MTSA - Nationwide DL throughput for iOS devices over cellular network +
+

Nationwide DL throughput for iOS devices over cellular network

+
+
+
+ Network demand data by LATA (2020 forecast) +
+

Network demand data by LATA (2020 forecast)

+
+
+
+ Location based services county level drive test +
+

Location based services county level drive test

+
+
+
+ SDN Simulator - SNRC Traffic +
+

SDN Simulator - SNRC Traffic

+
+
+
+ Linear regression prediction of LBS/E911 drive test accuracy +
+

Linear regression prediction of LBS/E911 drive test accuracy

+
+
+
+ + +
+ Example Frame +
+
+ +
+
+
+
+
+ +
+ + + + +
+ +
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+ + + +
+
Monday
+ + + + + + +
+
+
+ + + +
+
Monday
+ + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Contacts + +
Developer Program + +
ZK Framework + +
JQuery + +
RNC Visualization + +
Heat Map + +
Animated Map + +
Process Management + +
Chat Session + +
+
+
+
+
+
+ + + + + + + + +
+ +
+ + +
+ +
+
+
+
+ +
+ + + + + -- cgit 1.2.3-korg