CAS Authentication failed
程序员文章站
2024-01-31 21:52:52
...
在做开源教育系统moodle的单点登录,使用cas。
我点击登录后可以跳转到cas登录页,填入错误的帐号密码通不过,正确的则能通过,然后跳回moodle但是一直卡着不动了,报错的url是http://192.168.71.21/login/index.php?authCAS=CAS&ticket=ST-2-EEORQtAQLq1xdUvmGi3j-cas01.example.org
页面显示
CAS Authentication failed!
You were not authenticated.
You may submit your request again by clicking here.
If the problem persists, you may contact the administrator of this site.
--------------------------------------------------------------------------------
phpCAS 1.1.3 using server https://cas.com:8443/cas/ (CAS 2.0)
查看cas的log,发现到了ACTION: SERVICE_TICKET_CREATED这一步,没有接下来的ACTION: SERVICE_TICKET_VALIDATED这一步,其他能正常单点登录的系统都是运行到这一步。
求大神帮忙,有个提醒也好
我点击登录后可以跳转到cas登录页,填入错误的帐号密码通不过,正确的则能通过,然后跳回moodle但是一直卡着不动了,报错的url是http://192.168.71.21/login/index.php?authCAS=CAS&ticket=ST-2-EEORQtAQLq1xdUvmGi3j-cas01.example.org
页面显示
CAS Authentication failed!
You were not authenticated.
You may submit your request again by clicking here.
If the problem persists, you may contact the administrator of this site.
--------------------------------------------------------------------------------
phpCAS 1.1.3 using server https://cas.com:8443/cas/ (CAS 2.0)
查看cas的log,发现到了ACTION: SERVICE_TICKET_CREATED这一步,没有接下来的ACTION: SERVICE_TICKET_VALIDATED这一步,其他能正常单点登录的系统都是运行到这一步。
求大神帮忙,有个提醒也好
回复讨论(解决方案)
我跟你的问题一模一样,你的解决了吗!!!我还在困惑找原因中!!!怎么弄也不好使啊!!!
我跟你的问题一模一样,你的解决了吗!!!我还在困惑找原因中!!!怎么弄也不好使啊!!!
解决了,域名解析问题
你需要确保cas服务器,web服务器,以及浏览器所在的PC这三台机器都能解析一些你自定义的域名。
我之前改了浏览器PC和web服务器的host,忘记改cas服务器的host了
我的ubuntu10.10可以,但是12.04居然出现这个问题! 到现在还没解决呢~
推荐阅读
-
关于“The application could not be installed: INSTALL_FAILED_TEST_ONLY“的解决办法
-
php解析cas返回的xml
-
The application could not be installed: INSTALL_FAILED_TEST_ONLY
-
Session 'app': Installation did not succeed.The application could not be installed: INSTALL FAILED I
-
安卓打包错误:The application could not be installed: INSTALL_FAILED_TEST_ONLY
-
Android之运行app提示The application could not be installed: INSTALL_FAILED_TEST_ONLY
-
真机安装The application could not be installed: INSTALL_FAILED_TEST_ONLY
-
Installation did not succeed. The application could not be installed: INSTALL_FAILED_CONFLICTING_PRO
-
The application could not be installed: INSTALL_FAILED_TEST_ONLY
-
The application could not be installed: INSTALL_FAILED_TEST_ONLY