0.3.4 • Published 8 years ago

hdu-cas-client v0.3.4

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

hdu-cas-client

npm version npm Dependency Status devDependency Status

CAS client for Hangzhou Dianzi University.

Usage

import {Client} from 'hdu-cas-client';
const app = server();

function handler(err, result, { req, res, next }) {
    res.send(result);
  }

app.get('/', new Client({
    casUrl: 'http://cas.host/login',
    validationServiceUrl: 'http://cas.host/serviceValidate',
    validationCallback: handler,
    callbackProtocol: protocol
  }).hander());

app.listen(3000);

License

MIT

0.3.4

8 years ago

0.3.3

8 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago