auth-server
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -23,3 +23,3 @@ var oauth = require('auth-server'), | ||
if (id === null) { | ||
return callback(clients['dummy']); | ||
return callback(clients.dummy); | ||
} else { | ||
@@ -29,10 +29,10 @@ return callback(clients[id]); | ||
}, | ||
isValidRedirectUri: function(client,uri) { return true; } | ||
isValidRedirectUri: function(client, uri) { return true; } | ||
}, | ||
tokenService = { | ||
generateToken: function() { | ||
return uuid.v4(); | ||
generateToken: function() { | ||
return uuid.v4(); | ||
}, | ||
generateDeviceCode: function() { | ||
return generateToken(); | ||
return uuid.v4(); | ||
} | ||
@@ -46,7 +46,7 @@ }, | ||
saveAccessToken: function(tokenData, callback) { | ||
accessTokens[tokenData.accessToken] = tokenData; | ||
accessTokens[tokenData.access_token] = tokenData; | ||
return callback(); | ||
}, | ||
getAuthorizationCode: function(code, callback) { | ||
return callback(authCodes[code]); | ||
return callback(authCodes[code]); | ||
}, | ||
@@ -64,3 +64,3 @@ getAccessToken: function(token, callback) { | ||
expiresIn = 3600, | ||
authServer = new oauth.AuthServer(clientService, tokenService, authorizationService, membershipService, expiresIn, supportedScopes); | ||
authServer = new oauth(clientService, tokenService, authorizationService, membershipService, expiresIn, supportedScopes); | ||
@@ -67,0 +67,0 @@ var authorize = function(req, res) { |
@@ -7,3 +7,3 @@ var flatiron = require('flatiron'), | ||
app = flatiron.app, | ||
creature = require('./lib/resources/creature,js'); | ||
creature = require('./lib/resources/creature.js'); | ||
@@ -13,3 +13,3 @@ app.config.file({ file: path.join(__dirname, 'config', 'config.json') }); | ||
app.use(flatiron.plugins.resourceful, { | ||
dir: path.join(__dirname, 'lib', 'resources'), | ||
dir: path.join(__dirname, 'lib', 'resources'), | ||
engine: 'memory' | ||
@@ -16,0 +16,0 @@ }); |
@@ -6,3 +6,3 @@ { | ||
"keywords": ["oauth", "auth server"], | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"homepage": "https://github.com/wpreul/oauth", | ||
@@ -9,0 +9,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36755