Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egg-cas

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-cas

```js config.cas = { ignore: [], //忽略地址, 优先级比match低 match: [], //需要匹配的地址 clientOrigin: '', //单点客户端服务器域名, 比如httsp://127.0.0.1:8080 serverOrigin: '', //单点中心服务器域名, 比如https://www.casserver.com paths: { clientValidate: '/cas/validate', //

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

egg-cas

config.default.js

  config.cas = {
		ignore: [], //忽略地址, 优先级比match低
		match: [], //需要匹配的地址
		clientOrigin: '', //单点客户端服务器域名, 比如httsp://127.0.0.1:8080
		serverOrigin: '', //单点中心服务器域名, 比如https://www.casserver.com
		paths: {
			clientValidate: '/cas/validate', //单点客户端对单点服务器输出的servicer地址参数,例如`${serverOrigin + login}?service=${encodeURIComponent(clientOrigin + clientValidate)}`
			serverValidate: '/serviceValidate', //单点服务器验证票据Ticket的路径
			login: '/login', //登陆路径
			logout: '/logout', //登出路径
		},
		fromAjax: {
			header: 'X-Requested-With', 
			status: 200,
		},
};

plugin.js

exports.cas = {
  enable: true,
  package: 'egg-cas'
}

router

  //logout
  router.get('/logout', app.cas.logout());

  //login
  router.get('/login', app.cas.login());

FAQs

Package last updated on 01 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc