I'm trying to access a CAS protected application/servlet from another CAS protected servlet on the same server (Tomcat). I'm using a HttpURLConnection and copying parameters and attributes (including cookies) from a web client HttpServletRequest (actually ShiroHttpServletRequest) and trying to use that information to access the service, as part of that request, on the other servlet, but I'm only getting a response code of 302 back from the HttpURLConnection. Is there some way I can get authorized access to the second servlet?
This is handled via proxy authn. You’ll need to get a PT for a 2nd servlet.