Skip to content

授权失败 #16

Open
Open

Description

@TianTian106

请问下这三个参数具体怎么写呢?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

  1. shouldnotappearcalm commented on Jul 10, 2019

    @shouldnotappearcalm

    升级node到11试试

  2. Asongguo commented on Jul 17, 2019

    @Asongguo

    授权失败是因为这个插件只支持http,要支持https需要修改“node_modules/yapi-plugin-gitlab/controller/oauth2Controller.js” 这个文件里面的 “const http = require('http')” 为 “const http = require('https')”

  3. ygqygq2 commented on Jul 24, 2019

    @ygqygq2

    @Asongguo 还要修改代码。。。那插件安装不是非常麻烦。看来放弃算了,维护不怎么积极。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions