diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59c40a5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# Mac OSX +.DS_Store + +# Node.js +node_modules +npm-debug.log \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..584e02d --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +(The MIT License) + +Copyright (c) 2011-2013 Kai Sasaki & Yohei Yamaguchi + +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 +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. \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7fe3718 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +SOURCES = lib/**/*.js + +# ============================================================================== +# Node Tests +# ============================================================================== + +VOWS = ./node_modules/.bin/vows +TESTS ?= test/*-test.js + +test: + @NODE_ENV=test NODE_PATH=lib $(VOWS) $(TESTS) + +# ============================================================================== +# Static Analysis +# ============================================================================== + +JSHINT = jshint + +hint: lint +lint: + $(JSHINT) $(SOURCES) + + +.PHONY: test hint lint \ No newline at end of file diff --git a/lib/passport-yj/index.js b/lib/passport-yj/index.js new file mode 100644 index 0000000..ce8f737 --- /dev/null +++ b/lib/passport-yj/index.js @@ -0,0 +1,18 @@ +/* + * Module dependencies + */ +var Strategy = require('./strategy'); + +/* + * Framework version + */ +require('pgkinfo')(module, 'version'); + + +/* + * Expose constructors + */ +exports.YJStrategy = Strategy; + + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..5f3b57e --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name" : "passport-yj", + "version" : "1.0.0", + "description" : "Yahoo! JAPAN authentication strategy for passport", + "keywords" : ["passport", "twitter", "auth", "authentication", "identity"], + "repository" : { + "type" : "git", + "url" : "git://github.com/Lewuathe/passport-yj.git" + }, + "bugs" : { + "url" : "git://github.com/Lewuathe/passport-yj.git/issues" + }, + "license": [{ + "type": "MIT", + "url" : "http://www.opensource.org/licenses/MIT" + }], + "main" : "./lib/passport-yj", + "dependencies":{ + "pkginfo" : "0.2.x", + "passport-oauth" : "0.1.x" + }, + "scripts" : { + "test" : "NODE_PATH=lib node_modules/.bin/vows test/*-test.js" + }, + "engines" : { + "node" : ">= 0.4.0" + } +} +