【发布时间】:2015-02-18 12:50:04
【问题描述】:
我有两个应用程序在 2 个不同的服务器上运行(一个在 tomcat 上,另一个在 JBoss 上)。这两个应用程序都连接到同一个 CAS 服务器进行身份验证。现在这个 CAS 服务器也驻留在同一个 JBoss 中。
Say:
App-1 --- is on tomcat and CASified
App-2 --- is on JBoss and CASified
CAS --- is on JBoss
现在我正在从浏览器调用 App-1 的 URL。出现 CAS 登录页面,提供用户名/密码后,请求现在成功进入 App-1 的 servlet。从这个 servlet 代码中,我试图调用驻留在 App-2 中的 Web 服务。
Note: I use axis2 for this webservice and the axis2.war is also CASified
to the same CAS server for authentication.
无论我做什么,我都无法使这个 web 服务调用工作。有没有办法做到这一点?
Note: If I call the CAS REST api with a hardcoded username/password, I am
getting the TGT, through which I am able to get the Service Ticket, with
which I am able to invoke that web-service. But I do not want to login again
with a hard-coded username or password. My webservice invocation should
happen with the already logged-in user only.
【问题讨论】:
标签: java web-services servlets cas