yapi icon indicating copy to clipboard operation
yapi copied to clipboard

安装并配置cas后,不生效,看不到portal登录的按钮

Open sywin opened this issue 6 years ago • 4 comments

版本号

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

sywin avatar Aug 14 '19 10:08 sywin

我也遇到同样的问题,版本是 1.8.5 ,我是通过 cli 安装的:

  • yapi plugin --name yapi-plugin-cas
  • 重启服务

同样的没有「portal登录」。

li-qs avatar Jan 10 '20 11:01 li-qs

同没有「portal登录」, 怎么解决啊

dymasch avatar Nov 07 '22 09:11 dymasch

邮件已收到,谢谢。The email has been received, thank you.

li-qs avatar Nov 07 '22 09:11 li-qs

https://github.com/33033624/yapi_cas_config 已经将插件做到配置文件中,可以直接配置 不需要额外引入cas

33033624 avatar May 25 '23 07:05 33033624