Commit Graph

58 Commits (dc484d620271b4d7cd0e92d1183497438d8ac317)

Author SHA1 Message Date
Sahat Yalkabov 11f9c12b1e Add Login route express validations 2014-01-23 22:47:21 -05:00
Sahat Yalkabov 3dc90ac05b Updated error messages 2014-01-12 15:31:17 -05:00
Sahat Yalkabov 3004cdb36e All 4 strategies will now create an email field (for local login) if the user is not logged in and it's the first time. 2014-01-07 16:04:28 -05:00
Sahat Yalkabov 8c115135b0 Local strategy now uses email as username field 2014-01-07 15:48:21 -05:00
Sahat Yalkabov 1be6217a84 passport strategy refactoring 2014-01-07 15:19:54 -05:00
Sahat Yalkabov 30a610be2c Cleaned up code + simplified 2013-12-20 14:12:29 -05:00
Sahat Yalkabov 36ba87ce09 Code refactoring, renamed token to accessToken in user schema, comment strings for routes, 2013-12-20 13:48:33 -05:00
Sahat Yalkabov a9ac61e063 Renamed config.js to secrets.js to better match the intents of the file 2013-12-20 01:31:16 -05:00
Sahat Yalkabov 74f1675e0e Github profile image is properly set when linked with account that does not have a picture 2013-12-14 16:51:23 -05:00
Sahat Yalkabov b635207440 Facebook oauth2 checks if user is already logged in (for linking with existing account) 2013-12-14 01:32:33 -05:00
Sahat Yalkabov 8596b8187b Github oauth2 has a check for authenticated user now as well 2013-12-14 01:29:49 -05:00
Sahat Yalkabov 19a8fa3024 Detect if user is logged in on twitter oauth2 strategy 2013-12-14 01:27:10 -05:00
Sahat Yalkabov b21b53a09e If user is already logged in, link google oauth with that existing account 2013-12-13 00:28:29 -05:00
Sahat Yalkabov 734c4e6741 Added missing tokenSecret when new twitter account is created 2013-12-10 01:56:43 -05:00
Sahat Yalkabov 37392d1fae passport isAuthorized middleware. Fixed headers already sent errors. 2013-12-08 04:30:43 -05:00
Sahat Yalkabov 7b4549b368 Refactoring 2013-12-08 03:58:56 -05:00
Sahat Yalkabov 195f916f56 Added isAuthorized middleware to tumblr and foursquare routes 2013-12-08 02:23:59 -05:00
Sahat Yalkabov 51001a0497 Created isAuthorized middleware 2013-12-08 02:10:49 -05:00
Sahat Yalkabov 4da392f736 Added oauth2 foursquare passport strategy 2013-12-07 12:30:54 -05:00
Sahat Yalkabov d3fb6a30a4 Modified the rest of strategies to use new token schema 2013-12-07 02:21:20 -05:00
Sahat Yalkabov 73d26e4a7f Send user instead of req.user 2013-12-07 02:18:26 -05:00
Sahat Yalkabov c03d62da08 Changed tokens from an object of objects to just an array, Tumblr strategy now pushes a new token in addition to tokenSecret as well as token kind 2013-12-07 02:17:46 -05:00
Sahat Yalkabov cbc9ec3506 removed admin middleware, also provider is now dynamically set on unauthorized page button url 2013-12-07 02:08:53 -05:00
Sahat Yalkabov 3871e7c0ec Inline tumblr callback instead of placing it in passportConfig 2013-12-07 01:05:19 -05:00
Sahat Yalkabov 435b006967 Refactoring tumblr authorization 2013-12-07 00:50:37 -05:00
Sahat Yalkabov 6751de2c26 Added passReqToCallback to tumblr oauth strategy to get currently logged in user 2013-12-07 00:29:32 -05:00
Sahat Yalkabov e05f2eaf7f Tumblr OAuth strategy 2013-12-06 22:49:40 -05:00
Sahat Yalkabov 074352ceed Multiple vars instead of 1 var per multiple libs 2013-12-06 22:21:46 -05:00
Sahat Yalkabov b2bb32332d Cleaned up and refactored passport configuration file 2013-12-06 20:16:39 -05:00
Sahat Yalkabov 62a87a8542 Facebook strategy refactoring 2013-12-06 01:51:50 -05:00
Sahat Yalkabov 8de4c4369e Refactored github strategy 2013-12-06 01:44:45 -05:00
Sahat Yalkabov 67636b2462 Refactored twitter strategy 2013-12-06 01:24:12 -05:00
Sahat Yalkabov ce3a8c78ec Added gender to user schema and radio buttons to account page 2013-12-06 00:18:39 -05:00
Sahat Yalkabov 3ecd3ad148 Simplified local strategy signup process, email is now a username 2013-12-05 22:48:09 -05:00
Sahat Yalkabov 298e0f02e3 New foursquare authentication token request UI 2013-12-04 15:25:57 -05:00
Sahat Yalkabov 652fa0b57b Signup page now has a similar design as login page 2013-12-04 14:07:58 -05:00
Sahat Yalkabov 12368eaf95 Updated passport local strategy to use usernameEmail usernameField 2013-12-04 07:58:17 -05:00
Sahat Yalkabov 83dbe9c197 Redirect back to previous page when visiting login and sign up pages after user is already logged in 2013-12-04 07:44:07 -05:00
Sahat Yalkabov f48702c448 Fixed github callback route redirection, new user is now successfully created on github login 2013-12-03 17:57:54 -05:00
Sahat Yalkabov af32d85a2b Added github login strategy 2013-12-03 17:38:14 -05:00
Sahat Yalkabov 179138f1b5 Fixed Twitter auth "findUserOrCreate" 2013-12-02 19:20:57 -05:00
Sahat Yalkabov cab3e31e3f Twitter Login authentication 2013-12-02 19:16:27 -05:00
Sahat Yalkabov 5843ac3341 Code cleanup 2013-12-01 14:02:06 -05:00
Sahat Yalkabov 2099c79d83 Save email address when making a new user with facebook oauth2 2013-11-25 11:48:47 -05:00
Sahat Yalkabov b618fda00f Save user's email on google oauth2 login 2013-11-21 14:29:41 -05:00
Sahat Yalkabov 4ba93805e4 Google oauth2 login 2013-11-21 14:20:38 -05:00
Sahat Yalkabov cfd376c538 added routes and controllers (not yet implemented) for contact and api sample browser pages 2013-11-19 14:33:11 -05:00
Sahat Yalkabov f6aa7740c1 cleanup 2013-11-19 02:00:38 -05:00
Sahat Yalkabov dd0dbd7138 fixed repeated login error, no longer throws duplicate user error 2013-11-19 01:57:13 -05:00
Sahat Yalkabov 20011d257d Added email validator 2013-11-19 01:36:51 -05:00