Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
marsanla committed Dec 17, 2014
1 parent 1644377 commit 1cd73e5
Show file tree
Hide file tree
Showing 15 changed files with 343 additions and 2 deletions.
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/libraries/oauth2_server_restify_node_modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/oauth2-server-restify.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/scopes/scope_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

225 changes: 225 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified examples/mongodb/Readme.md
100755 → 100644
Empty file.
Empty file modified examples/mongodb/model.js
100755 → 100644
Empty file.
5 changes: 3 additions & 2 deletions lib/grant.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ function Grant (config, req, res, next) {
*/
function extractCredentials (next) {
// Only POST via application/x-www-form-urlencoded is acceptable
if (this.req.method !== 'POST' ||
!this.req.is('application/x-www-form-urlencoded')) {
if (this.req.method !== 'POST' || !this.req.is('application/x-www-form-urlencoded')) {
return next(new error.BadMethodError('Method must be POST with application/x-www-form-urlencoded encoding'));
}

Expand All @@ -78,6 +77,8 @@ function extractCredentials (next) {
// Extract credentials
// http://tools.ietf.org/html/rfc6749#section-3.2.1
this.client = credsFromBasic(this.req) || credsFromBody(this.req);
console.log(this.client);

if (!this.client.clientId ||
!this.client.clientId.match(this.config.regex.clientId)) {
return next(new error.InvalidCredentialsError('Invalid or missing client_id parameter'));
Expand Down
57 changes: 57 additions & 0 deletions npm-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
0 info it worked if it ends with ok
1 verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]
2 info using [email protected]
3 info using [email protected]
4 verbose publish [ '.' ]
5 verbose cache add [ '.', null ]
6 verbose cache add name=undefined spec="." args=[".",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url slashes: null,
7 verbose parsed url auth: null,
7 verbose parsed url host: null,
7 verbose parsed url port: null,
7 verbose parsed url hostname: null,
7 verbose parsed url hash: null,
7 verbose parsed url search: null,
7 verbose parsed url query: null,
7 verbose parsed url pathname: '.',
7 verbose parsed url path: '.',
7 verbose parsed url href: '.' }
8 silly lockFile 3a52ce78- .
9 verbose lock . /Users/marsanla/.npm/3a52ce78-.lock
10 verbose tar pack [ '/Users/marsanla/.npm/oauth2-server-restify/2.3.0/package.tgz',
10 verbose tar pack '.' ]
11 verbose tarball /Users/marsanla/.npm/oauth2-server-restify/2.3.0/package.tgz
12 verbose folder .
13 info prepublish [email protected]
14 silly lockFile 1f1177db-tar tar://.
15 verbose lock tar://. /Users/marsanla/.npm/1f1177db-tar.lock
16 silly lockFile d23e35c7-server-restify-2-3-0-package-tgz tar:///Users/marsanla/.npm/oauth2-server-restify/2.3.0/package.tgz
17 verbose lock tar:///Users/marsanla/.npm/oauth2-server-restify/2.3.0/package.tgz /Users/marsanla/.npm/d23e35c7-server-restify-2-3-0-package-tgz.lock
18 silly lockFile 1f1177db-tar tar://.
19 silly lockFile 1f1177db-tar tar://.
20 silly lockFile d23e35c7-server-restify-2-3-0-package-tgz tar:///Users/marsanla/.npm/oauth2-server-restify/2.3.0/package.tgz
21 silly lockFile d23e35c7-server-restify-2-3-0-package-tgz tar:///Users/marsanla/.npm/oauth2-server-restify/2.3.0/package.tgz
22 silly lockFile e9adc364-th2-server-restify-2-3-0-package /Users/marsanla/.npm/oauth2-server-restify/2.3.0/package
23 verbose lock /Users/marsanla/.npm/oauth2-server-restify/2.3.0/package /Users/marsanla/.npm/e9adc364-th2-server-restify-2-3-0-package.lock
24 silly lockFile e9adc364-th2-server-restify-2-3-0-package /Users/marsanla/.npm/oauth2-server-restify/2.3.0/package
25 silly lockFile e9adc364-th2-server-restify-2-3-0-package /Users/marsanla/.npm/oauth2-server-restify/2.3.0/package
26 silly lockFile 3a52ce78- .
27 silly lockFile 3a52ce78- .
28 error addLocal Could not install .
29 error Error: EACCES, open '/Users/marsanla/.npm/oauth2-server-restify/2.3.0/package/package.json'
29 error { [Error: EACCES, open '/Users/marsanla/.npm/oauth2-server-restify/2.3.0/package/package.json']
29 error errno: 3,
29 error code: 'EACCES',
29 error path: '/Users/marsanla/.npm/oauth2-server-restify/2.3.0/package/package.json' }
30 error Please try running this command again as root/Administrator.
31 error System Darwin 14.0.0
32 error command "node" "/usr/local/bin/npm" "publish"
33 error cwd /Users/marsanla/Proyectos/elefrant/components/elefrant-oauth2/node_modules/oauth2-server-restify
34 error node -v v0.10.32
35 error npm -v 1.4.28
36 error path /Users/marsanla/.npm/oauth2-server-restify/2.3.0/package/package.json
37 error code EACCES
38 error errno 3
39 error stack Error: EACCES, open '/Users/marsanla/.npm/oauth2-server-restify/2.3.0/package/package.json'
40 verbose exit [ 3, true ]
Loading

0 comments on commit 1cd73e5

Please sign in to comment.