Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载auth2插件, 授权后显示请登录 #3

Closed
nilsir opened this issue Aug 27, 2019 · 1 comment
Closed

加载auth2插件, 授权后显示请登录 #3

nilsir opened this issue Aug 27, 2019 · 1 comment

Comments

@nilsir
Copy link

nilsir commented Aug 27, 2019

oauth2插件地址

配置为:

{
      "name": "auth2",
      "options": {
        "type": "oauth2",
        "clientId": "3",
        "clientSecret": "6HHjAGud4I11ZCjC2vlhC84HwzE7kn7nbtBlfnpR",
        "authServer": "http://ms_passport.test",
        "authPath": "/oauth/authorize",
        "tokenPath": "/oauth/token",
        "infoPath": "/api/user",
        "redirectUri": "http://192.168.0.200:40001/api/plugin/oauth2/callback",
        "userKey": "name",
        "emailKey": "email",
        "buttonName": "授权登录",
        "authArgs": {
          //"response_type": "code"
        }
      }
    }

完了之后响应

{
"errcode": 40011,
"errmsg": "请登录...",
"data": null
}

请问是哪里弄错了呢, 怎么才能正常授权通过呢, 授权采用的标准oauth2, 辛苦大佬

然后还想问下 怎么进入容器里边呢
我现在是docker exec -it yapi-web [这里不知道可以填啥]

@fjc0k
Copy link
Owner

fjc0k commented Aug 27, 2019

插件的问题不是镜像的问题,不属于本项目可以回答的范畴。

在项目目录下执行命令进入容器:

docker-compose exec yapi-web /bin/sh

@fjc0k fjc0k closed this as completed Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants