pcf-express-sso
A fork and straight port to TypeScript of pcf-sso-express-middleware.
The purpose of this module is to wrap the process of interfacing with the Single Sign-On service provided for Pivotal Cloud Foundry into a middleware for express.
For more information on PCF SSO visit: PCF Single Sign-On Overview
Basic Usage Example:
Install with NPM or Yarn: yarn add pcf-express-sso
. If you are using TypeScript you will also need to add @types/express
and @types/simple-oauth2
.
app.use session, auth.initializeENABLE_AUTH app.use/\/.*/, app.get"/*", app.listenPORT,
Notes:
- Use an external store once in production, like Redis.
- Use a secret provided via environment variables once in production
Testing:
Run yarn test
.
TODO:
Backfill tests for SSOClient#initialize, etc.