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>
 
        
蛋疼....


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM