i am working on the webseal authentication, i have created the junction with name /dgcontroller/services/dgsecure i have craeted the rest api with same name as junction.
Here is the rest api
@RequestMapping(value = "/dgsecure", method = RequestMethod.GET)
public void handleRedirectionForDgsecure(HttpServletRequest request, HttpServletResponse response)throws IOException, DgException {
try {
System.out.println("inside my service");
String userIdentifierWebSEAL = "";
String redirectionURL = "";
userIdentifierWebSEAL = request.getHeader("iv-user");
redirectionURL = "http://192.168.2.80:10181/dgadmin/login.html";
response.sendRedirect(redirectionURL);
} catch (Exception e) {
logger.error("Error in webseal handleRedirectionForDgsecure Rest API", e);
response.sendRedirect("/dgcontroller/error.jsp");
}
}
the iv-user is fetched successfully but after that it will not rediect to given redirectionURL. can anyone please help me to resolve this issue. Thanks