uqsso
v1.0.0
Published
UQ Single Sign-On support for zones
Downloads
4
Readme
node-uqsso
UQ Single Sign-On support for uqcloud.net zones using node.js.
Designed for use with express
or restify
.
Example
npm install uqsso express cookie-parser
var uqsso = require('uqsso');
var express = require('express');
var cookieParser = require('cookie-parser');
var app = express();
var sso = uqsso();
sso.public('^/$');
app.use(cookieParser());
app.use(sso);
app.get('/authtest', function(req, res, next) {
return res.send(JSON.stringify(req.user));
});
app.get('/', function(req, res, next) {
return res.send('hi');
});
app.listen(80);