From 5b473610b01b3252c18343128a39cf5d73b49cf3 Mon Sep 17 00:00:00 2001 From: rusirijayodaillesinghe Date: Tue, 20 Feb 2024 20:03:14 +0530 Subject: [PATCH] Remove the if clause related to isIdentifierFirstLogin which is not used in api manager --- .../product/src/main/extensions/login.jsp | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/modules/distribution/product/src/main/extensions/login.jsp b/modules/distribution/product/src/main/extensions/login.jsp index af318156f8..839efd9c00 100644 --- a/modules/distribution/product/src/main/extensions/login.jsp +++ b/modules/distribution/product/src/main/extensions/login.jsp @@ -142,28 +142,6 @@ String username = null; String usernameIdentifier = null; - if (isIdentifierFirstLogin(inputType)) { - String authAPIURL = application.getInitParameter(Constants.AUTHENTICATION_REST_ENDPOINT_URL); - if (StringUtils.isBlank(authAPIURL)) { - authAPIURL = IdentityUtil.getServerURL("/api/identity/auth/v1.1/", true, true); - } - if (!authAPIURL.endsWith("/")) { - authAPIURL += "/"; - } - authAPIURL += "context/" + request.getParameter("sessionDataKey"); - String contextProperties = AuthContextAPIClient.getContextProperties(authAPIURL); - Gson gson = new Gson(); - Map parameters = gson.fromJson(contextProperties, Map.class); - if (parameters != null) { - username = (String) parameters.get("username"); - usernameIdentifier = (String) parameters.get("username"); - } else { - String redirectURL = "error.do"; - response.sendRedirect(redirectURL); - return; - } - } - // Login context request url. String sessionDataKey = request.getParameter("sessionDataKey"); String appName = request.getParameter("sp");