1.0.17 • Published 7 years ago

yc-passport-client v1.0.17

Weekly downloads
4
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago