Skip to content

Commit

Permalink
Remove the if clause related to isIdentifierFirstLogin which is not u…
Browse files Browse the repository at this point in the history
…sed in api manager
  • Loading branch information
RusJaI committed Feb 20, 2024
1 parent 66d0c60 commit 5b47361
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions modules/distribution/product/src/main/extensions/login.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> 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");
Expand Down

0 comments on commit 5b47361

Please sign in to comment.