auth-server
Advanced tools
@@ -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 @@ }); |
+1
-1
@@ -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": { |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Unidentified License
LicenseSomething that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
36755
-0.06%