xwxsee2014 / yapi-plugin-oauth2

第三方插件,基于Oauth2协议登录
16 stars 13 forks source link

授权之后无法正常登录 #2

Open nilsir opened 5 years ago

nilsir commented 5 years ago

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
}

大佬, 这个问题怎么解决呢

zhoujunhe commented 3 years ago

有人解决了这问题了吗?

fitzix commented 3 years ago

有人解决了这问题了吗?

https://github.com/amazing-gao/yapi-plugin-auth2/issues/2