客户端请求受限资源时,跳转到CAS服务器登录页面,登录成功之后返回到client端(用的是srping security3.2)接受到的response却是登录页面的HTML,这是什么问题啊
这是Console的信息,
2013-08-01 15:01:21,478 DEBUG http-8088-Processor23 org.jasig.cas.client.validation.Cas20ServiceTicketValidator - Constructing validation url: https://localhost:8443/cas/login/serviceValidate?ticket=ST-18-ogPpoe1pIw6f42Pd57Le-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check
2013-08-01 15:01:21,478 DEBUG http-8088-Processor23 org.jasig.cas.client.validation.Cas20ServiceTicketValidator - Retrieving response from server.
2013-08-01 15:01:21,497 DEBUG http-8088-Processor23 org.jasig.cas.client.validation.Cas20ServiceTicketValidator - Server response:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<title>CAS – Central Authentication Service</title>
<link type="text/css" rel="stylesheet" href="/cas/css/cas.css;jsessionid=81602BA6205FE24F5FB9FA6BBA70CD5D" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="/cas/favicon.ico;jsessionid=81602BA6205FE24F5FB9FA6BBA70CD5D" type="image/x-icon" />
</head>
<body id="cas" class="fl-theme-iphone">
<div class="flc-screenNavigator-view-container">
<div class="fl-screenNavigator-view">
<div id="header" class="flc-screenNavigator-navbar fl-navbar fl-table">
<h1 id="company-name">Jasig</h1>
<h1 id="app-name" class="fl-table-cell">Central Authentication Service (CAS)</h1>
</div>
<div id="content" class="fl-screenNavigator-scroll-container">
<div class="box fl-panel" id="login">
<form id="fm1" class="fm-v clearfix" action="/cas/login;jsessionid=81602BA6205FE24F5FB9FA6BBA70CD5D?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check" method="post">
<!-- ��ӭ4��������֤ϵͳ��Ĭ�ϵ���֤������֧����Щ�û������������˺ţ������߿������Կ��� -->
<h2>����������û��������.</h2>
<div class="row fl-controls-left">
<label for="username" class="fl-label">�û���:</label>
<input id="username" name="username" class="required" tabindex="1" accesskey="n" type="text" value="" size="25" autocomplete="false"/>
</div>
<div class="row fl-controls-left">
<label for="password" class="fl-label">�ܡ���:</label>
<input id="password" name="password" class="required" tabindex="2" accesskey="p" type="password" value="" size="25" autocomplete="off"/>
</div>
<div class="row check">
<input id="warn" name="warn" value="true" tabindex="3" accesskey="w" type="checkbox" />
<label for="warn">ת������վ��ǰ��ʾ�ҡ�</label>
</div>
<div class="row btn-row">
<input type="hidden" name="lt" value="LT-18-e0TR7hJdzbBAQJErJEJebP2PzDAcsw" />
<input type="hidden" name="execution" value="e1s1" />
<input type="hidden" name="_eventId" value="submit" />
<input class="btn-submit" name="submit" accesskey="l" value="��¼" tabindex="4" type="submit" />
<input class="btn-reset" name="reset" accesskey="c" value="����" tabindex="5" type="reset" />
</div>
</form>
</div>
<div id="sidebar">
<div class="sidebar-content">
<p class="fl-panel fl-note fl-bevel-white fl-font-size-80">���ڰ�ȫ���ǣ�һ������ʹ���Щ��Ҫ���ṩƾ֤��Ϣ��Ӧ��ʱ����������֮��ر������</p>
<div id="list-languages" class="fl-panel">
<h3>Languages:</h3>
<ul
><li class="first"><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=en">English</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=es">Spanish</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=fr">French</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=ru">Russian</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=nl">Nederlands</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=sv">Svenska</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=it">Italiano</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=ur">Urdu</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=zh_CN">Chinese (Simplified)</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=zh_TW">Chinese (Traditional)</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=de">Deutsch</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=ja">Japanese</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=hr">Croatian</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=cs">Czech</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=sl">Slovenian</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=ca">Catalan</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=mk">Macedonian</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=fa">Farsi</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=ar">Arabic</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=pt_PT">Portuguese</a></li
><li><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=pt_BR">Portuguese (Brazil)</a></li
><li class="last"><a href="login?ticket=ST-17-XqoMKj9j3MyD5nvgaDVu-cas01.example.org&service=http%3A%2F%2F192.168.0.202%3A8088%2FXTask%2Fj_spring_cas_security_check&locale=pl">Polish</a></li
></ul>
</div>
</div>
</div>
</div>
<div id="footer" class="fl-panel fl-note fl-bevel-white fl-font-size-80">
<a id="jasig" href="http://www.jasig.org" title="go to Jasig home page"></a>
<div id="copyright">
<p>Copyright © 2005 - 2012 Jasig, Inc. All rights reserved.</p>
<p>Powered by <a href="http://www.jasig.org/cas">Jasig Central Authentication Service 3.5.2</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/jquery-ui.min.js"></script>
<script type="text/javascript" src="/cas/js/cas.js;jsessionid=81602BA6205FE24F5FB9FA6BBA70CD5D"></script>
</body>
</html>
相关推荐
当用户成功登录后,CAS服务器会将服务票证(ST)作为查询字符串参数返回到你指定的回调URL。 ```csharp protected void btnLogin_Click(object sender, EventArgs e) { // 重定向到CAS登录页面 Response.Redirect...
- `defaultUrl`: 成功登录后默认重定向到的页面地址。 - `timeout`: 会话超时时间,单位为秒。 #### 五、实现CAS单点登录模块 为了使.NET应用程序能够与CAS服务器交互,我们需要创建一个HTTP模块来处理CAS相关的...
### SSO/CAS 单点登录配置手册 #### 一、单点登录(SSO)概述 单点登录(Single Sign-On, SSO)是一种让用户只需一次登录就能访问多个应用系统的认证方式。它不仅提升了用户体验,同时也提高了系统的安全性,因为用户...
CAS(Central Authentication Service)是一种开源的单点登录协议和服务实现,它不仅支持单点登录,还支持单点登出功能。本文将深入探讨CAS如何实现单点登录与单点登出,重点解析单点登出的具体流程和技术细节。 ##...
用户在访问需要认证的资源时,会被重定向到 CAS 登录页面,完成登录后,CAS 会将认证结果返回给 Shiro,Shiro 再根据这个结果进行权限控制。这样,既能利用 CAS 的强大身份验证能力,又能结合 Shiro 实现细粒度的...
4. CAS 验证成功后,生成服务票证(Service Ticket)并重定向回 ofbiz 应用。 5. ofbiz 应用验证服务票证,并在验证通过后创建会话,允许用户访问应用。 【ofbiz SSO 改造应用】 在实际应用中,可能会对 ofbiz 的 ...
5. **设置CAS登录成功后的重定向页面**: - 修改`WEB-INF/view/jsp/default/ui/casGenericSuccess.jsp`文件,使登录成功后跳转至指定页面。 ```java response.sendRedirect(...
Wsdl(Web Services Description Language)是一种XML格式,用于描述Web服务的消息结构和协议。它定义了服务提供的操作、消息格式、数据类型和调用方式。 ##### 2. 编写参考 参考`microloan_nanjing\source\fsds\...
使用 Spring Boot 结合 Vue 实现 SSO 单点登录 本文主要为大家详细介绍了如何使用 Spring Boot 和 Vue 实现 SSO 单点登录,具有一定的参考价值。下面我们将从技术角度深入探讨该实现的细节。 Spring Boot 的选择 ...
而`LinkedHashSet`则是基于哈希表与双向链表实现,保证了元素插入顺序。 #### 用JDBC编写带有事务处理的代码示例 使用JDBC进行数据库操作时,事务管理是非常重要的。以下是一个简单的示例: ```java Connection ...