Commit Graph
78 Commits
Author SHA1 Message Date
danielhumgon 46a1c5888e refactor(axios): Replaced request and request-promise with axios 2020-01-30 01:10:06 -04:00
danielhumgon f1f31be9d0 refactor(auth): Back-ported email/username auth changes 2020-01-27 02:22:07 -04:00
Chris Troutner e45a2666da Got basic log api functioning 2020-01-15 21:28:13 -08:00
Chris Troutner 2630f16a39 fix(linting): Updating deps to keep linting workign in Atom prettier 2019-10-13 12:28:13 -07:00
Chris Troutner c18604daf3 fixing dependencies so that prettier linting works in Atom 2019-10-13 12:26:27 -07:00
Chris Troutner f20cb0bcc6 fix(api docs): Removing version tags in api docs 2019-06-13 09:52:26 -07:00
Chris Troutner 91654fe7b8 feat(logging): Added Winston logging 2019-05-20 20:57:44 -07:00
Chris Troutner 0f8fe82d50 Cleaned up console logs in tests 2019-05-20 20:32:16 -07:00
Chris Troutner 2c34e56bc3 Fixed startup bug with admin in tests 2019-05-20 20:24:26 -07:00
Chris Troutner 91861e657a fix(admin bug): fixed a bug with admin account and tests 2019-05-20 18:35:02 -07:00
Chris Troutner 1ddf247e45 Got admin user created at startup 2019-05-16 20:18:09 -07:00
Chris Troutner 5994e58fcd added libraries for working with admin account and json files from p2p vps server 2019-05-16 19:56:31 -07:00
Chris Troutner 3d85026ca5 Renamed src/utils to src/lib 2019-05-16 15:28:51 -07:00
Chris Troutner 00fa492c86 Ported admin-type user validatoin from p2p vps server 2019-05-16 15:24:55 -07:00
Chris Troutner 97d49753db Fixing dependency upgrades 2018-11-07 20:59:30 -08:00
Chris Troutner ff79decc02 Added tests for delete user 2018-11-05 11:40:10 -08:00
Chris Troutner 2fd0778474 Removed mongodb deprecation warnings 2018-10-16 11:27:01 -07:00
Chris Troutner a12022c51e Replacing bcrypt with bcryptjs as a dependency 2018-10-16 11:06:39 -07:00
Chris Troutner b4bb65c466 Replacing files with non-babel equivalent 2018-03-05 19:31:19 -08:00
Adrian Obelmejias e95c2cedd3 Attach current user to context.user 2016-08-30 17:10:56 -04:00
Adrian Obelmejias de550f31df Use standard for linting rules 2016-08-30 16:58:35 -04:00
Alan Sikora 2453c11903 now you can determine which is the last handler by checking if next function exists 2016-04-11 00:00:18 -03:00
Emil Ajdyna c428135fbc Move getToken method to utils 2016-03-31 21:26:09 +02:00
Emil Ajdyna 5ebdc028e4 Use authorization header instead of query parameter for jwt 2016-03-31 20:12:01 +02:00
Adrian Obelmejias acbdd519cf Use method from user model for generating token 2016-03-30 19:14:39 -04:00
Marc-Olivier Fiset 9e0621532b Remove the salt field from the user model, as it's redundant 2016-03-30 10:05:57 -04:00
Adrian Obelmejias f29e6e0432 Add docs 2016-03-19 11:26:39 -04:00
Adrian Obelmejias 6524773c53 Improve logging 2016-03-18 23:34:57 -04:00
Adrian Obelmejias d247a26716 Move token generation to model 2016-03-18 23:23:45 -04:00
Adrian Obelmejias 3539d66d50 Use getUser as middleware for code reuse 2016-03-18 23:14:57 -04:00
Adrian Obelmejias 16fa1ebd0a Pass user object within a user key 2016-03-18 23:04:14 -04:00
Adrian Obelmejias 8ffe8a40ae Replace object with proper array implementation 2016-03-18 22:59:01 -04:00
Adrian Obelmejias 0f3384eb57 Fix import 2016-03-16 20:32:51 -04:00
Adrian Obelmejias ae2bf52fcf Remove old controllers 2016-03-16 20:28:41 -04:00
Adrian Obelmejias e79a98f8da Move auth controllers to new modules 2016-03-16 20:28:26 -04:00
Adrian Obelmejias b08cef1ffc Add DELETE /users/:id 2016-03-16 20:21:16 -04:00
Adrian Obelmejias 2d8e171d07 Add PUT /users/:id 2016-03-16 20:18:27 -04:00
Adrian Obelmejias b10f6acf19 Update router generation with handlers 2016-03-16 20:18:00 -04:00
Adrian Obelmejias 462d584aa3 Add GET /users/:id route 2016-03-05 15:23:41 -05:00
Adrian Obelmejias 9f8a04e556 Add GET /users route 2016-03-05 15:13:41 -05:00
Adrian Obelmejias 1030f80360 Mount middleware stack per route 2016-03-05 15:11:02 -05:00
Adrian Obelmejias d4434e2ef8 Module intializer - generates routes and connects to controller 2016-03-05 14:12:09 -05:00
Adrian Obelmejias 184451f9fc Create router for /users 2016-03-05 13:38:08 -05:00
Adrian Obelmejias e96606acdb Add docs for DELETE /users/:id 2016-03-04 23:46:25 -05:00
Adrian Obelmejias ac7b8172ba Add docs for PUT /users/:id 2016-03-04 23:43:03 -05:00
Adrian Obelmejias 2f0c87ce91 Set error name to Unauthorized-Error 2016-03-04 23:42:51 -05:00
Adrian Obelmejias f5bfba49c5 Add docs for POST /users 2016-03-04 23:33:46 -05:00
Adrian Obelmejias 1b026949d2 Add docs for GET /user/:id 2016-03-04 23:23:25 -05:00
Adrian Obelmejias 1eae3a4c0e Define auth error 2016-03-04 23:17:12 -05:00
Adrian Obelmejias 87ea94b739 Mount documentation on /docs 2016-03-04 23:05:54 -05:00