Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update project metadata.

  • Loading branch information...
commit 7c4966c3c55aee5898394705ba441f0406eef828 1 parent cb135d6
@jaredhanson authored
Showing with 39 additions and 45 deletions.
  1. +1 −1  LICENSE
  2. +17 −12 Makefile
  3. +10 −25 README.md
  4. +11 −7 package.json
View
2  LICENSE
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2011 Jared Hanson
+Copyright (c) 2012-2013 Jared Hanson
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
View
29 Makefile
@@ -1,19 +1,24 @@
-NODE = node
-TEST = ./node_modules/.bin/vows
+SOURCES = lib/**/*.js
+
+# ==============================================================================
+# Node Tests
+# ==============================================================================
+
+VOWS = ./node_modules/.bin/vows
TESTS ?= test/*-test.js
test:
- @NODE_ENV=test NODE_PATH=lib $(TEST) $(TEST_FLAGS) $(TESTS)
+ @NODE_ENV=test NODE_PATH=lib $(VOWS) $(TESTS)
+
+# ==============================================================================
+# Static Analysis
+# ==============================================================================
-docs: docs/api.html
+JSHINT = jshint
-docs/api.html: lib/passport-37signals/*.js
- dox \
- --title Passport-37signals \
- --desc "37signals authentication strategy for Passport" \
- $(shell find lib/passport-37signals/* -type f) > $@
+hint: lint
+lint:
+ $(JSHINT) $(SOURCES)
-docclean:
- rm -f docs/*.{1,html}
-.PHONY: test docs docclean
+.PHONY: test hint lint
View
35 README.md
@@ -3,7 +3,13 @@
[Passport](https://github.com/jaredhanson/passport) strategy for authenticating
with [37signals](http://37signals.com/) using the OAuth 2.0 API.
-## Installation
+This module lets you authenticate using 37signals in your Node.js applications.
+By plugging into Passport, 37signals authentication can be easily and
+unobtrusively integrated into any application or framework that supports
+[Connect](http://www.senchalabs.org/connect/)-style middleware, including
+[Express](http://expressjs.com/).
+
+## Install
$ npm install passport-37signals
@@ -37,11 +43,7 @@ For example, as route middleware in an [Express](http://expressjs.com/)
application:
app.get('/auth/37signals',
- passport.authenticate('37signals'),
- function(req, res){
- // The request will be redirected to 37signals for authentication, so
- // this function will not be called.
- });
+ passport.authenticate('37signals'));
app.get('/auth/37signals/callback',
passport.authenticate('37signals', { failureRedirect: '/login' }),
@@ -67,23 +69,6 @@ For a complete, working example, refer to the [login example](https://github.com
## License
-(The MIT License)
-
-Copyright (c) 2011 Jared Hanson
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
+[The MIT License](http://opensource.org/licenses/MIT)
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
-FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
-COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
-IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+Copyright (c) 2012-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
View
18 package.json
@@ -2,7 +2,7 @@
"name": "passport-37signals",
"version": "0.1.1",
"description": "37signals authentication strategy for Passport.",
- "author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" },
+ "keywords": ["passport", "37signals", "basecamp", "highrise", "campfire", "backpack", "auth", "authn", "authentication", "identity"],
"repository": {
"type": "git",
"url": "git://github.com/jaredhanson/passport-37signals.git"
@@ -10,6 +10,15 @@
"bugs": {
"url": "http://github.com/jaredhanson/passport-37signals/issues"
},
+ "author": {
+ "name": "Jared Hanson",
+ "email": "jaredhanson@gmail.com",
+ "url": "http://www.jaredhanson.net/"
+ },
+ "licenses": [ {
+ "type": "MIT",
+ "url": "http://www.opensource.org/licenses/MIT"
+ } ],
"main": "./lib/passport-37signals",
"dependencies": {
"pkginfo": "0.2.x",
@@ -21,10 +30,5 @@
"scripts": {
"test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js"
},
- "engines": { "node": ">= 0.4.0" },
- "licenses": [ {
- "type": "MIT",
- "url": "http://www.opensource.org/licenses/MIT"
- } ],
- "keywords": ["passport", "37signals", "basecamp", "backpack", "campfire", "highrise", "auth", "authn", "authentication", "identity"]
+ "engines": { "node": ">= 0.4.0" }
}
Please sign in to comment.
Something went wrong with that request. Please try again.