我是靠谱客的博主 欢喜白羊,最近开发中收集的这篇文章主要介绍nodejs(connect-cas2)调cas报错Receive response from CAS when validating ticket, but the validation i...,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

nodejs(connect-cas2)调cas报错Receive response from CAS when validating ticket, but the validation is failed 完整报错:

options.restletIntegration is set, but options.paths.restletIntegration is undefined! Maybe you forget to set all your paths.
Get lastUrl: http://localhost:3000/
Start validating ticket...
Find ticket in query ST-2-6MNRwXC2DBeEJ3tsVdFU-cas01.example.org
Sending request to: "http://130.51.23.165:8180/cas/serviceValidate?pgtUrl=http%3A%2F%2Flocalhost%3A3000%2Fbuglycas%2FproxyCallback&service=http%3A%2F%2Flocalhost%3A3000%2Findex&ticket=ST-2-6MNRwXC2DBeEJ3tsVdFU-cas01.example.org" to validate ticket.
|GET|http://130.51.23.165:8180/cas/serviceValidate?pgtUrl=http%3A%2F%2Flocalhost%3A3000%2Fbuglycas%2FproxyCallback&service=http%3A%2F%2Flocalhost%3A3000%2Findex&ticket=ST-2-6MNRwXC2DBeEJ3tsVdFU-cas01.example.org|200|100
Receive from CAS server, status: 200
Receive response from CAS when validating ticket, but the validation is failed.
Cas response: { '$': { 'xmlns:cas': 'http://www.yale.edu/tp/cas' },
  authenticationFailure:
   [ { _: 'rnttUNAUTHORIZED_SERVICE_PROXYrnt', '$': [Object] } ] }

解决:

Sending request to: "http://130.51.23.165:8180/cas/serviceValidate?pgtUrl=http%3A%2F%2Flocalhost%3A3000%2Fbuglycas%2FproxyCallback&service=http%3A%2F%2Flocalhost%3A3000%2Findex&ticket=ST-2-6MNRwXC2DBeEJ3tsVdFU-cas01.example.org" to validate ticket. 用了pgt,不对,不要proxy。 proxyCallback不要定义,填空。

转载于:https://my.oschina.net/u/2464371/blog/2875865

最后

以上就是欢喜白羊为你收集整理的nodejs(connect-cas2)调cas报错Receive response from CAS when validating ticket, but the validation i...的全部内容,希望文章能够帮你解决nodejs(connect-cas2)调cas报错Receive response from CAS when validating ticket, but the validation i...所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(37)

评论列表共有 0 条评论

立即
投稿
返回
顶部