New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

heroku-bouncer

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-bouncer

heroku bouncer middleware for express

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-heroku-bouncer

node-heroku-bouncer is an easy-to-use module for adding cookie-session-based Heroku OAuth authentication to express apps.

Install

$ npm install heroku-bouncer --save
$ echo SESSION_SECRET=$some_secret
$ echo COOKIE_SECRET=$another_secret
$ echo ENCRYPTION_SECRET=$final_secret
$ echo HEROKU_OAUTH_ID=$oauth_client_id
$ echo HEROKU_OAUTH_SECRET=$oauth_client_secret
$ echo HEROKU_AUTH_URL=https://id.heroku.com

Use

node-heroku-bouncer adds the express cookieParser and cookieSession middlewares to your app for you, and then adds the appropriate middleware and OAuth routes.

var app = require('express')();
require('heroku-bouncer')(app);

app.get('/', function(req, res) {
  // The user's token will be available:
  // `req['heroku-bouncer'].token;`

  res.end("I'm authenticated!")
});

FAQs

Package last updated on 23 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc