yapi-plugin-o2

1.1.5 • Public • Published

yapi-plugin-o2

第三方插件,基于 Oauth2 协议登录的简化模式。

{
    "plugins": [
        {
            "name": "o2",
            "options": {
                //  id
                "clientId": "your client id",
                // 
                "authServer": "http://auth.server",
                // 
                "authPath": "/oauth/authorize",
                // 
                "infoPath": "/user/info",
                // 
                "userKey": "usernamekey",
                // 
                "emailKey": "emailkey",
                // 
                "emailPostfix": "@email.com",
                // 
                "buttonName": "login"
            }
        }
    ]
}

使用注意:

  • Oauth2 服务器用户信息需要提供: emailusername两个字段,如果字段名不一致,可以通过emailKeyuserKey设置。

Readme

Keywords

none

Package Sidebar

Install

npm i yapi-plugin-o2

Weekly Downloads

12

Version

1.1.5

License

ISC

Unpacked Size

4.28 kB

Total Files

6

Last publish

Collaborators

  • satious