public class RedirectServlet
extends javax.servlet.http.HttpServlet
/rhn/Redirect
will be processed by this servlet. The redirect URL will
consist of the full URL including the query string, except that the /rhn/Redirect
portion of the URI will be stripped out. This is best illustrated with an
example:
Request URL:
https://somehost.redhat.com/rhn/Redirect/rhn/systems/Overview.do
Redirect URL: https://somehost.redhat.com/rhn/systems/Overview.do
The use case for RedirectServlet is for supporting perl in a hosted environment when SSO authentication is enabled. The SSO authentication logic has not and will not be ported to the perl code base; consequently, perl will continue to rely solely on the PXT authentication model. This is fine since the SSO authentication service will create, refresh, and invalidate the PXT session as necessary. A problem exists though in the following scenario in which a request does not go through the servlet filters:
Constructor and Description |
---|
RedirectServlet() |
Modifier and Type | Method and Description |
---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
java.io.IOException