servlet to servlet authorized access

22 views
Skip to first unread message

Craig Snider

unread,
Aug 22, 2016, 3:38:53 PM8/22/16
to CAS Community
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?

I'm using CAS 4.2.1 with Shiro plugin 1.2.1, shiro-cas plugin 0.5.1, Groovy/Grails 2.4.4, Tomcat 8.0.32.

    - Craig

Misagh Moayyed

unread,
Aug 23, 2016, 1:03:25 AM8/23/16
to CAS Community

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.

Reply all
Reply to author
Forward
0 new messages