Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Google Apps OpenID auth middleware for Connect / Node.js
CoffeeScript

This branch is 1 commit ahead of Shopify:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
LICENSE.txt
README.md
googleapps.coffee
googleapps.js
package.json

README.md

connect-googleapps

Google Apps OpenID authentication middleware for Connect/Node.js.

Usage

Make sure you are using a session middleware.

$ npm install connect-googleapps
connect = require('connect');
googleAuth = require('connect-googleapps');

connect(
  connect.logger(),
  connect.cookieParser(),
  connect.session({ secret: 'unicorns' }),
  googleAuth('example.org'),

  connect.router(function(app) {
    app.get('/', function(req, res, next){
      res.writeHead(200, {'Content-Type': 'text/plain'});
      res.write(req.session.user);
      res.end();
    });
  })
).listen(3000);
Something went wrong with that request. Please try again.