From 02255de5d9009eefb7caaf9a169d560d0d5727f9 Mon Sep 17 00:00:00 2001 From: Sumedhe Dissanayake Date: Thu, 10 Oct 2024 10:17:43 +0530 Subject: [PATCH] Remove openid_profile jsp file and references --- .../src/main/webapp/WEB-INF/web.xml | 10 -- .../src/main/webapp/openid_profile.jsp | 168 ------------------ .../resources/web.xml.j2 | 1 - 3 files changed, 179 deletions(-) delete mode 100644 identity-apps-core/apps/authentication-portal/src/main/webapp/openid_profile.jsp diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/WEB-INF/web.xml b/identity-apps-core/apps/authentication-portal/src/main/webapp/WEB-INF/web.xml index 0aa7a0cd9f1..c9ba8bc2577 100644 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/WEB-INF/web.xml +++ b/identity-apps-core/apps/authentication-portal/src/main/webapp/WEB-INF/web.xml @@ -247,11 +247,6 @@ /login.jsp - - openid_profile.do - /openid_profile.jsp - - passivests_login.do /login.jsp @@ -547,11 +542,6 @@ /openid_login.do - - openid_profile.do - /openid_profile.do - - passivests_login.do /passivests_login.do diff --git a/identity-apps-core/apps/authentication-portal/src/main/webapp/openid_profile.jsp b/identity-apps-core/apps/authentication-portal/src/main/webapp/openid_profile.jsp deleted file mode 100644 index 2273dbab498..00000000000 --- a/identity-apps-core/apps/authentication-portal/src/main/webapp/openid_profile.jsp +++ /dev/null @@ -1,168 +0,0 @@ -<%-- - ~ Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. - ~ - ~ WSO2 Inc. licenses this file to you 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 import="org.owasp.encoder.Encode" %> -<%@ page import="java.io.File" %> -<%@ page import="org.wso2.carbon.identity.application.authentication.endpoint.util.AuthenticationEndpointUtil" %> -<%@ taglib prefix="layout" uri="org.wso2.identity.apps.taglibs.layout.controller" %> - -<%@include file="includes/localize.jsp" %> -<%@include file="includes/init-url.jsp" %> - -<%-- Branding Preferences --%> - - -<% - String[] profiles = request.getParameterValues("profile"); - String[] claimTags = request.getParameterValues("claimTag"); - String[] claimValues = request.getParameterValues("claimValue"); - String openidreturnto = request.getParameter("openid.return_to"); - String openididentity = request.getParameter("openid.identity"); - if (openidreturnto != null && openidreturnto.indexOf("?") > 0) { - openidreturnto = openidreturnto.substring(0, openidreturnto.indexOf("?")); - } -%> - -<%-- Data for the layout from the page --%> -<% - layoutData.put("containerSize", "large"); -%> - - - - - <%-- header --%> - <% - File headerFile = new File(getServletContext().getRealPath("extensions/header.jsp")); - if (headerFile.exists()) { - %> - - <% } else { %> - - <% } %> - - - - - <%-- product-title --%> - <% - File productTitleFile = new File(getServletContext().getRealPath("extensions/product-title.jsp")); - if (productTitleFile.exists()) { - %> - - <% } else { %> - - <% } %> - - -
-

- <%=AuthenticationEndpointUtil.i18n(resourceBundle, "openid.user.claims")%> -

- -
-
- <% if (claimTags != null && claimTags.length > 0) { %> - - - - - - <% - for (int i = 0; i < claimTags.length; i++) { - String claimTag = claimTags[i]; - if ("MultiAttributeSeparator" .equals(claimTag)) { - continue; - } - %> - - - - - <% } %> -
<%=AuthenticationEndpointUtil.i18n(resourceBundle, "claim.uri")%><%=AuthenticationEndpointUtil.i18n(resourceBundle, "claim.value")%>
<%=Encode.forHtmlContent(claimTag)%><%=Encode.forHtmlContent(claimValues[i])%>
- <% } %> -
- -
- "/> - "/> - - <% - if (AuthenticationEndpointUtil.isValidURL(openidreturnto)) { - %> - " - onclick="javascript:document.location.href='<%=Encode.forJavaScript(openidreturnto)%>'"/> - <% - } - %> -
-
-
-
- - <%-- product-footer --%> - <% - File productFooterFile = new File(getServletContext().getRealPath("extensions/product-footer.jsp")); - if (productFooterFile.exists()) { - %> - - <% } else { %> - - <% } %> - - - - -
- - <%-- footer --%> - <% - File footerFile = new File(getServletContext().getRealPath("extensions/footer.jsp")); - if (footerFile.exists()) { - %> - - <% } else { %> - - <% } %> - - - - diff --git a/identity-apps-core/features/org.wso2.identity.apps.authentication.portal.server.feature/resources/web.xml.j2 b/identity-apps-core/features/org.wso2.identity.apps.authentication.portal.server.feature/resources/web.xml.j2 index 8c95c6d2a3d..8a8e921c72f 100644 --- a/identity-apps-core/features/org.wso2.identity.apps.authentication.portal.server.feature/resources/web.xml.j2 +++ b/identity-apps-core/features/org.wso2.identity.apps.authentication.portal.server.feature/resources/web.xml.j2 @@ -317,7 +317,6 @@ {"name": "samlsso_redirect.do", "jsp": "/login.jsp", "url": "/samlsso_redirect.do"}, {"name": "samlsso_notification.do", "jsp": "/samlsso_notification.jsp", "url": "/samlsso_notification.do"}, {"name": "openid_login.do", "jsp": "/login.jsp", "url": "/openid_login.do"}, - {"name": "openid_profile.do", "jsp": "/openid_profile.jsp", "url": "/openid_profile.do"}, {"name": "passivests_login.do", "jsp": "/login.jsp", "url": "/passivests_login.do"}, {"name": "tenantlistrefresher.do", "jsp": "/tenant_refresh_endpoint.jsp", "url": "/tenantlistrefresher.do"}, {"name": "consent.do", "jsp": "/consent.jsp", "url": "/consent.do"},