Express (4.x) middleware for securing routes using HPE Haven OnDemand SSO.
Designed for use with the node-hod-request-lib, hod-sso-js and a compatible token repository.
The currently supported token repository implementations are limited to:
- (In memory) simple token repository included as part of the node-hod-request-lib
- Redis token repository
express-hod-sso exposes an Express Router for use as middleware/routing:
var ssoRouter = require('express-hod-sso');
app.use(ssoRouter(apiKey, {
allowedOrigins: allowedOrigins,
hodRequestLib: hodRequestLib,
tokenRepository: tokenRepository
}));
Copyright 2016 Hewlett Packard Enterprise Development LP
Licensed under the MIT License (the "License"); you may not use this project except in compliance with the License.