hdu-cas-client
v0.3.4
Published
A simple cas client for Hangzhou Dianzi University
Downloads
2
Readme
hdu-cas-client
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);