No principal was found in the response from the CAS server

Posted chenpi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No principal was found in the response from the CAS server相关的知识,希望对你有一定的参考价值。

按网上的配置了

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的主要内容,如果未能解决你的问题,请参考以下文章

No MyBatis mapper was found in '[xx.mapper]' package. Please check your configuration

No context type was found in the assembly 'xxx.xxxx'. CodeFirst Ef错误

Rejected because no crossdomain.xml policy file was found

Rejected because no crossdomain.xml policy file was found

No matching configuration of project :libusb was found.

openstack错误-创建实例失败-No valid host was found