hdu-cas-client
TypeScript icon, indicating that this package has built-in type declarations

0.3.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i hdu-cas-client

Weekly Downloads

0

Version

0.3.4

License

MIT

Last publish

Collaborators

  • redhome