Browse files

Remove submodules, add package.json.

  • Loading branch information...
1 parent f8f76b0 commit 24001928ef961e26614af38ce93cbbacedd914d6 @francois2metz francois2metz committed Feb 14, 2011
View
3 .gitmodules
@@ -1,3 +0,0 @@
-[submodule "vendors/nodetk"]
- path = vendors/nodetk
- url = git://github.com/AF83/nodetk.git
View
2 .npmignore
@@ -0,0 +1,2 @@
+node_modules/*
+tests/*
View
0 src/oauth2/common.js → lib/common.js
File renamed without changes.
View
6 src/oauth2/server.js → lib/server.js
@@ -9,12 +9,6 @@
* http://tools.ietf.org/html/draft-ietf-oauth-v2-10#section-1.2
*
*/
-
-[ 'nodetk/src'
-].forEach(function(libpath) {
- require.paths.unshift(__dirname + '/../vendors/' + libpath);
-});
-
var URL = require('url')
, querystring = require('querystring')
View
13 package.json
@@ -0,0 +1,13 @@
+{ "name" : "oauth2-server"
+, "description" : "Node library providing the bases to implement an OAuth2 server (as connect middleware)."
+, "version": "0.0.1pre"
+, "main": "./lib/server.js"
+, "repository" :
+ { "type" : "git"
+ , "url" : "https://github.com/AF83/oauth2_server_node.git"
+ }
+, "dependencies": {
+ "nodetk": "",
+ "connect": ""
+}
+}
View
2 ...nittests/common/test_create_read_token.js → tests/common/test_create_read_token.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , oauth2 = require('../../../oauth2/common')
+ , oauth2 = require('../../lib/common')
, serializer = require('nodetk/serializer')
;
View
2 src/tests/unittests/server/test_authorize.js → tests/server/test_authorize.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
+ , server = require('../../lib/server')
, tools = require('nodetk/testing/tools')
, expect_oauth_error = require('./tools').expect_oauth_error
, extend = require('nodetk/utils').extend
View
2 ...ittests/server/test_authorize_endpoint.js → tests/server/test_authorize_endpoint.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
+ , server = require('../../lib/server')
, tools = require('nodetk/testing/tools')
, querystring = require('querystring')
, expect_oauth_error = require('./tools').expect_oauth_error
View
2 ...ests/unittests/server/test_oauth_error.js → tests/server/test_oauth_error.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
+ , server = require('../../lib/server')
, tools = require('nodetk/testing/tools')
;
View
2 ...tests/unittests/server/test_send_grant.js → tests/server/test_send_grant.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
+ , server = require('../../lib/server')
, tools = require('nodetk/testing/tools')
, extend = require('nodetk/utils').extend
, querystring = require('querystring')
View
2 ...s/unittests/server/test_token_endpoint.js → tests/server/test_token_endpoint.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
+ , server = require('../../lib/server')
, tools = require('nodetk/testing/tools')
, extend = require('nodetk/utils').extend
, expect_oauth_error = require('./tools').expect_oauth_error
View
4 ...ests/unittests/server/test_valid_grant.js → tests/server/test_valid_grant.js
@@ -1,6 +1,6 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
- , oauth2 = require('../../../oauth2/common')
+ , server = require('../../lib/server')
+ , oauth2 = require('../../lib/common')
, tools = require('nodetk/testing/tools')
, serializer = require('nodetk/serializer')
;
View
2 src/tests/unittests/server/tools.js → tests/server/tools.js
@@ -1,5 +1,5 @@
var assert = require('nodetk/testing/custom_assert')
- , server = require('../../../oauth2/server')
+ , server = require('../../lib/server')
;
1 vendors/nodetk
@@ -1 +0,0 @@
-Subproject commit aa905dec17c952a46874202f89ace20317a34e15

0 comments on commit 2400192

Please sign in to comment.