码迷,mamicode.com
首页 > 其他好文 > 详细

No principal was found in the response from the CAS server

时间:2019-03-08 23:48:36      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:.com   public   ipa   ack   ati   导致   ESS   jsp页面   上下文   

按网上的配置了

public String casServerUrlPrefix = "http://cas-server.com:8080/cas";

public String casServerLoginUrl = "http://cas-server.com:8080/cas/login";

其它的都没问题,结果一直报错,

No principal was found in the response from the CAS server
No principal was found in the response from the CAS server


搞了半天,结果发现是cas-server的上下文配错了,没有加cas上下文,导致Cas20ServiceTicketValidator    : Server response异常,返回了casLoginView.jsp页面

而正常的应该是这样:
<cas:serviceResponse xmlns:cas=‘http://www.yale.edu/tp/cas‘>
    <cas:authenticationSuccess>
        <cas:user>test</cas:user>


    </cas:authenticationSuccess>
</cas:serviceResponse>

蛋疼....

No principal was found in the response from the CAS server

标签:.com   public   ipa   ack   ati   导致   ESS   jsp页面   上下文   

原文地址:https://www.cnblogs.com/chenpi/p/9231180.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!