概述
2019独角兽企业重金招聘Python工程师标准>>>
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...所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复