30 Commits
Author SHA1 Message Date
Timothy Younger f2acb80707 feat(node_id): parses profile node_id, which is documented as the best practice ID to persist as of API V4: https://developer.github.com/v4/guides/using-global-node-ids/#using-global-node-ids-in-migrations 2020-01-15 13:48:11 -07:00
Jared Scheib 7480c3d32d refactor: replace Object.assign for npm test compatibility (Node 0.12) 2019-02-07 14:28:14 -05:00
Jared Scheib 5bc895e113 feat: optionally return all raw email addresses for user 2019-02-06 17:17:27 -05:00
guoshencheng 93e2777e58 add option for name 2017-09-30 16:05:02 +08:00
Per-Kristian Nordnes b274eb42f2 Add avatar_url from Github to Passport's profile.photos 2017-08-30 10:58:56 +02:00
isayme 5d66773276 request _userEmailURL when has user:email permission 2016-01-20 14:53:32 +08:00
Bastian Konetzny b54d0909df Fixed error message for emails endpoint error. 2015-10-12 16:46:11 +02:00
Fred Chien a0f7e43db9 modified testcase for email API 2014-08-28 10:54:03 +08:00
Fred Chien ae891a4222 Get email address via github API v3 2014-08-24 06:46:55 +08:00
Jared Hanson af8bad0041 Check for existence of email field in profile. 2014-03-09 10:30:19 -07:00
Jared Hanson 0cb0209db6 Refactor profile parsing. 2014-03-09 10:26:13 -07:00
Jared Hanson 7c8b9a3328 Refactor profile parsing. 2014-03-09 10:26:01 -07:00
Jared Hanson 1a2450db68 Cast id to string, port test cases to mocha. 2014-03-09 10:14:45 -07:00
Jared Hanson 289053e4f8 Edit for style. 2014-03-09 10:01:54 -07:00
Jared Hanson 967aa0c7c4 Simplify lib directory structure. 2014-03-09 10:00:00 -07:00
Jared Hanson cb3567772e Update dependencies. 2014-03-09 09:58:29 -07:00
Jared Hanson 83324b4c00 Remove if no access token check from userProfile. 2014-03-09 09:36:20 -07:00
Andrew Newdigate 1612e05ac7 Use authenticated requests to retrieve the user profile, and fail if no
access token has been supplied
2013-12-06 11:19:30 +00:00
Jared Hanson 645b171a2d Add test cases for User-Agent. 2013-05-04 09:46:06 -07:00
Sergey Generalov e6fcac7a33 Make passport-github default option for User-Agent 2013-04-24 15:34:16 -07:00
Sergey Generalov 32b7f17f00 [Fix] Fix typo and small logic bug 2013-04-24 15:32:32 -07:00
Sergey Generalov 8b59a4a29f Add option userAgent. Which specify User-Agent HTTP header for all Github API requests.
Github reject API requests without this header. By default its passport-github.
2013-04-24 13:01:39 -07:00
Jared Hanson ad4db53f7a Slight edits for style. 2013-04-09 18:21:34 -07:00
Rich Ragan 67720944ca Remove unneeded comment lines 2013-02-27 16:59:01 -08:00
Rich Ragan 6747e5372a Add support for corporate GitHubs 2013-02-27 16:54:19 -08:00
Jared Hanson 7276e2a4cb Wrap error for informative messages. 2012-04-28 09:40:48 -07:00
Jared Hanson ab2ef93cb3 Allow default scope separator to be overridden by option. 2012-03-14 22:49:10 -07:00
Matt Bornski b6a5094066 minor tweak to more easily allow requesting permission scopes. These aren't generally required for authentication but if you want to reuse the authentication with something else (like a web UI to your GitHub deploy system) you might want to throw a few more scopes in in one go. 2012-03-12 17:42:05 -07:00
Jared Hanson 2f6246b616 Conform to latest conventions. 2012-02-15 08:14:29 -08:00
Jared Hanson 38a52c7885 Initial commit. 2011-11-23 19:02:35 -08:00