Skip to content

Commit

Permalink
Update project metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhanson committed Jan 25, 2013
1 parent e001f61 commit 2a09e40
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 45 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
(The MIT License) (The MIT License)


Copyright (c) 2011 Jared Hanson Copyright (c) 2011-2013 Jared Hanson


Permission is hereby granted, free of charge, to any person obtaining a copy of 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 this software and associated documentation files (the "Software"), to deal in
Expand Down
29 changes: 17 additions & 12 deletions Makefile
Original file line number Original file line Diff line number Diff line change
@@ -1,19 +1,24 @@
NODE = node SOURCES = lib/**/*.js
TEST = ./node_modules/.bin/vows
# ==============================================================================
# Node Tests
# ==============================================================================

VOWS = ./node_modules/.bin/vows
TESTS ?= test/*-test.js TESTS ?= test/*-test.js


test: 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-netflix/*.js hint: lint
dox \ lint:
--title Passport-Netflix \ $(JSHINT) $(SOURCES)
--desc "Netflix authentication strategy for Passport" \
$(shell find lib/passport-netflix/* -type f) > $@


docclean:
rm -f docs/*.{1,html}


.PHONY: test docs docclean .PHONY: test hint lint
35 changes: 10 additions & 25 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
[Passport](https://github.com/jaredhanson/passport) strategy for authenticating [Passport](https://github.com/jaredhanson/passport) strategy for authenticating
with [Netflix](http://www.netflix.com/) using the OAuth 1.0a API. with [Netflix](http://www.netflix.com/) using the OAuth 1.0a API.


## Installation This module lets you authenticate using Netflix in your Node.js applications.
By plugging into Passport, Netflix 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-netflix $ npm install passport-netflix


Expand Down Expand Up @@ -37,11 +43,7 @@ For example, as route middleware in an [Express](http://expressjs.com/)
application: application:


app.get('/auth/netflix', app.get('/auth/netflix',
passport.authenticate('netflix'), passport.authenticate('netflix'));
function(req, res){
// The request will be redirected to Netflix for authentication, so this
// function will not be called.
});


app.get('/auth/netflix/callback', app.get('/auth/netflix/callback',
passport.authenticate('netflix', { failureRedirect: '/login' }), passport.authenticate('netflix', { failureRedirect: '/login' }),
Expand All @@ -67,23 +69,6 @@ For a complete, working example, refer to the [login example](https://github.com


## License ## License


(The MIT License) [The MIT License](http://opensource.org/licenses/MIT)

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 SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR Copyright (c) 2011-2013 Jared Hanson <[http://jaredhanson.net/](http://jaredhanson.net/)>
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.
18 changes: 11 additions & 7 deletions package.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@
"name": "passport-netflix", "name": "passport-netflix",
"version": "0.1.1", "version": "0.1.1",
"description": "Netflix authentication strategy for Passport.", "description": "Netflix authentication strategy for Passport.",
"author": { "name": "Jared Hanson", "email": "jaredhanson@gmail.com", "url": "http://www.jaredhanson.net/" }, "keywords": ["passport", "netflix", "auth", "authn", "authentication", "identity"],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/jaredhanson/passport-netflix.git" "url": "git://github.com/jaredhanson/passport-netflix.git"
}, },
"bugs": { "bugs": {
"url": "http://github.com/jaredhanson/passport-netflix/issues" "url": "http://github.com/jaredhanson/passport-netflix/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-netflix", "main": "./lib/passport-netflix",
"dependencies": { "dependencies": {
"pkginfo": "0.2.x", "pkginfo": "0.2.x",
Expand All @@ -22,10 +31,5 @@
"scripts": { "scripts": {
"test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js" "test": "NODE_PATH=lib node_modules/.bin/vows test/*-test.js"
}, },
"engines": { "node": ">= 0.4.0" }, "engines": { "node": ">= 0.4.0" }
"licenses": [ {
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
} ],
"keywords": ["passport", "netflix", "auth", "authn", "authentication", "identity"]
} }

0 comments on commit 2a09e40

Please sign in to comment.