Skip to content

YApi可视化接口管理平台 tuzhan 微信 扫码登录 插件

Notifications You must be signed in to change notification settings

jjeejj/yapi-plugin-tz-wxlogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yapi-plugin-tz-wxlogin

第三方插件,在生成的配置文件中,添加如下配置即可:

"plugins": [
    {
      "name": "tz-wxlogin",
      "options": {
          "type": "sso",
          "loginUrl": "https://new.h5no1.com/wechat/get_user_by_code?code=",
          "AUTH_SERVER" : "https://new.h5no1.com/cerberus/wechat/auth-iframe.html"
      }
    }
  ]

这里面的配置项含义如下:

  • type 登陆类型,目前只支持sso登陆
  • loginUrl 服务端在获取微信code之后,可以通过这个url来获取用户的详细信息
  • AUTH_SERVER 点击登陆按钮式需要跳转的url,用户通过该页面登录以后会向服务器发送微信code

About

YApi可视化接口管理平台 tuzhan 微信 扫码登录 插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published