Skip to content

Commit

Permalink
Move auth strategies back to auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Buczynski committed Jul 17, 2016
1 parent 58936cc commit 543b2f8
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 150 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let passport = require('passport');
let BearerStrategy = require('passport-http-bearer').Strategy;
let jwt = require('meanie-express-jwt-service');
let InvalidTokenError = jwt.InvalidTokenError;
let User = require('../components/user/user.service');
let User = require('../../user/user.service');

/**
* Bearer strategy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
let passport = require('passport');
let LocalStrategy = require('passport-local').Strategy;
let User = require('../components/user/user.service');
let User = require('../../user/user.service');

/**
* Local strategy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let passport = require('passport');
let RefreshStrategy = require('meanie-passport-refresh-strategy');
let jwt = require('meanie-express-jwt-service');
let InvalidTokenError = jwt.InvalidTokenError;
let User = require('../components/user/user.service');
let User = require('../../user/user.service');

/**
* Refresh token strategy
Expand Down
116 changes: 0 additions & 116 deletions app/helpers/set-properties.js

This file was deleted.

30 changes: 0 additions & 30 deletions app/helpers/strip-object.js

This file was deleted.

2 changes: 1 addition & 1 deletion app/services/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = function(app) {

//Load authentication strategies
console.log('Loading authentication strategies...');
glob.sync('./app/strategies/**/*.js')
glob.sync('./app/components/auth/strategies/**/*.js')
.forEach(strategyPath => {
console.log(chalk.grey(' - %s'), strategyPath.replace('./app/', ''));
require(path.resolve(strategyPath))();
Expand Down

0 comments on commit 543b2f8

Please sign in to comment.