1.0.17 • Published 8 years ago

yc-passport-client v1.0.17

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

yc-passport-client

SSO Client Side of Yuechuang

用法:

const yc_pass_client = require('yc-passport-client');
const app = require('express');
...
app.get('/checkTicket', ycpass_client.checkTicket(ssoApiUrl, 30 * 24 * 60 * 60 * 1000, siteUrl));
app.get('*', ycpass_client.checkSid(ssoUrl, siteUrl, javaApiUrl));
...
app.post('/api', ycpass_client.forwardMiddleWare(javaApiUrl));
...
app.listen(app.get('port'), () => {
  ...
});

参数说明:

  • ssoUrl: 登录跳转地址
  • siteUrl: 分站地址
  • javaApiUrl: 后台api地址
  • ssoApiUrl: 单点后台api地址
1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago