## 请问下这三个参数具体怎么写呢?userKey是写创建access-token的gitlab账户名吗? "emailKey" : "email", "userKey" : "username", "emailPostfix" : "@yapi.com" ## yapi v1.7.0-beta.0版本安装了这个插件,安装过程中一直报以下错误是否对使用有影响? error componentWillMount is deprecated since React 16.999.0, use UNSAFE_componentWillMount instead, see https://reactjs.org/docs/react-component.html#unsafe_componentwillmount. Use https://github.com/reactjs/react-codemod#rename-unsafe-lifecycles to automatically update your components react/no-deprecated ## 安装过后成功启动,也能注册登录,但是gitlab登录输入用户名和密码后,返回的是: { "errcode": 401, "errmsg": "授权失败", "data": {} }
Activity
shouldnotappearcalm commentedon Jul 10, 2019
升级node到11试试
Asongguo commentedon Jul 17, 2019
授权失败是因为这个插件只支持http,要支持https需要修改“node_modules/yapi-plugin-gitlab/controller/oauth2Controller.js” 这个文件里面的 “const http = require('http')” 为 “const http = require('https')”
ygqygq2 commentedon Jul 24, 2019
@Asongguo 还要修改代码。。。那插件安装不是非常麻烦。看来放弃算了,维护不怎么积极。