让 CAS 5.1.8 支持http,解决未认证授权服务错误提示问题

在部署CAS 5.1.8时遇到未认证授权服务错误,原因是默认仅支持https。通过修改服务JSON配置文件(增加http支持)和服务注册属性(启用JSON初始化),解决了问题。注意,`cas.serviceRegistry.initFromJson=true`是关键设置,此选项常被忽略。尽管修改后无法消除安全警告,但实现了http支持。
摘要由CSDN通过智能技术生成

好不容易将CAS 5.1.8编译完毕,生成war包,并修改配置,支持数据库(oracle)方式认证,部署到tomcat,准备用了,孰料一打开客户端应用程序,跳到CAS,没有账号密码输入框,只有一句刺目的错误提示:方便各位后来者在搜索引擎上查找答案,附录相关文字:
这里写图片描述

方便各位后来者在搜索引擎上查找答案,附录相关文字:

未认证授权的服务
CAS的服务记录是空的,没有定义服务。 希望通过CAS进行认证的应用程序必须在服务记录中明确定义。

Application Not Authorized to Use CAS

You are not authorized to access the application as your account \
is missing privileges required by the CAS server to authenticate into this service. Please notify your support desk.

The application you attempted to authenticate to is not authorized to use CAS. Contact your CAS administrator to learn how you might register and integrate your application with CAS.

The services registry of CAS is empty and has no service definitions. \
Applications that wish to authenticate with CAS
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值