GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsfe/yapi-plugin-cas: 为yapi设置的基于cas的登录插件

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
client.js
client.js
 
 
index.js
index.js
 
 
package.json
package.json
 
 
server.js
server.js
 
 

Repository files navigation

yapi-plugin-cas

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

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

"plugins": [
  {
    "name": "cas",
    "options": {
      "type": "cas",
      "LOGIN_SERVER": "http://cas.example.com/cas/login",
      "AUTH_SERVER" : "https://cas.example.com/cas/serviceValidate",
      "emailPostfix": "@163.com",
    }
  }
]

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

  • type 登陆类型,目前只支持cas登陆
  • loginUrl 服务端在获取token之后,可以通过这个url来获取用户的详细信息
  • emailPostfix 登陆邮箱后缀
  • AUTH_SERVER 点击登陆按钮式需要跳转的url,用户通过该页面登录以后会向服务器发送一个token 第二步:在config.json 这层目录下运行 yapi plugin --name yapi-plugin-cas 重新下载插件

第三步: 重启服务器

About

为yapi设置的基于cas的登录插件

Resources

Readme
License
Activity
Custom properties

Stars

13 stars

Watchers

1 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.