安装并配置cas后,不生效,看不到portal登录的按钮
版本号
1.8.1
什么问题
安装了cas, 并在config.json中作了相应配置。重启之后,看不到【portal登录】的按钮。 config.json配置如下 { "port": "3000", "adminAccount": "[email protected]", "db": { "servername": "127.0.0.1", "DATABASE": "yapi", "port": "27017" }, "mail": { "enable": false, "host": "smtp.163.com", "port": 465, "from": "@163.com", "auth": { "user": "@163.com", "pass": "*****" } }, "plugins": [ { "name": "cas", "options": { "type": "cas", "LOGIN_SERVER": "https://sso.xxx.cn:8443/cas/login", "AUTH_SERVER": "https://sso.xxx.cn:8443/cas/p3/serviceValidate", "emailPostfix": "@xxx.cn" } } ] }
如何复现此问题
~
什么浏览器
chrome
什么系统(Linux, Windows, macOS)
服务器是centos7.3
我也遇到同样的问题,版本是 1.8.5 ,我是通过 cli 安装的:
-
yapi plugin --name yapi-plugin-cas - 重启服务
同样的没有「portal登录」。
同没有「portal登录」, 怎么解决啊
邮件已收到,谢谢。The email has been received, thank you.
https://github.com/33033624/yapi_cas_config 已经将插件做到配置文件中,可以直接配置 不需要额外引入cas