New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

yapi-plugin-qsso

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yapi-plugin-qsso

第三方sso登录插件,配置方法如下:

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
58
9.43%
Maintainers
1
Weekly downloads
 
Created
Source

yapi-plugin-qsso

第三方sso登录插件,配置方法如下:

第一步: 在生成的配置文件config.json中加入如下配置:

"plugins": [
    {
      "name": "qsso",
      "options": {
        "type": "sso",
        "loginUrl": "http://sso.example.com/service/verifytoken.php?token=",
        "emailPostfix": "@163.com",
        "AUTH_SERVER" : "https://sso.example.com/login.php"
      }
    }
  ]

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

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

第二步:在config.json 这层目录下运行 yapi plugin --name yapi-plugin-qsso 重新下载插件

第三步: 重启服务器

FAQs

Package last updated on 05 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts