zoukankan      html  css  js  c++  java
  • 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>
    
    
    蛋疼....
  • 相关阅读:
    javascript生成二维码
    Gulp--Less
    自动构建工具Gulp
    上传文件返回数据提示下载
    svg
    Grunt--Less
    node.js--Less
    浏览器端Less
    HTML5表单
    node.js模块依赖及版本号
  • 原文地址:https://www.cnblogs.com/chenpi/p/9231180.html
Copyright © 2011-2022 走看看