Skip to content
Permalink
Browse files

feat: Authentication v3 core server implementation (#1205)

BEAKING CHANGE: Express and passport independent rewrite of authentication core server. See #1045
  • Loading branch information...
daffl committed Feb 10, 2019
1 parent 3ad094e commit 1bd7591548da58c1c0facb2a733ce32524743ff3
Showing with 3,033 additions and 16,841 deletions.
  1. +1 −0 .gitignore
  2. +1,012 −1,489 package-lock.json
  3. +1 −1 package.json
  4. +0 −93 packages/adapter-commons/package-lock.json
  5. +66 −295 packages/adapter-tests/package-lock.json
  6. +1 −1 packages/authentication-client/package-lock.json
  7. +74 −1,377 packages/authentication-jwt/package-lock.json
  8. +209 −1,418 packages/authentication-local/package-lock.json
  9. +1 −1,171 packages/authentication-oauth1/package-lock.json
  10. +35 −1,033 packages/authentication-oauth2/package-lock.json
  11. +158 −0 packages/authentication/lib/core.js
  12. +0 −68 packages/authentication/lib/express/authenticate.js
  13. +0 −31 packages/authentication/lib/express/emit-events.js
  14. +0 −12 packages/authentication/lib/express/expose-cookies.js
  15. +0 −12 packages/authentication/lib/express/expose-headers.js
  16. +0 −23 packages/authentication/lib/express/failure-redirect.js
  17. +0 −17 packages/authentication/lib/express/index.js
  18. +0 −69 packages/authentication/lib/express/set-cookie.js
  19. +0 −18 packages/authentication/lib/express/success-redirect.js
  20. +46 −94 packages/authentication/lib/hooks/authenticate.js
  21. +29 −0 packages/authentication/lib/hooks/connection.js
  22. +19 −0 packages/authentication/lib/hooks/events.js
  23. +5 −1 packages/authentication/lib/hooks/index.js
  24. +10 −83 packages/authentication/lib/index.js
  25. +66 −0 packages/authentication/lib/jwt.js
  26. +7 −13 packages/authentication/lib/options.js
  27. +0 −109 packages/authentication/lib/passport/authenticate.js
  28. +0 −16 packages/authentication/lib/passport/index.js
  29. +0 −40 packages/authentication/lib/passport/initialize.js
  30. +87 −62 packages/authentication/lib/service.js
  31. +0 −174 packages/authentication/lib/socket/handler.js
  32. +0 −39 packages/authentication/lib/socket/index.js
  33. +0 −45 packages/authentication/lib/socket/update-entity.js
  34. +17 −0 packages/authentication/lib/strategy.js
  35. +0 −92 packages/authentication/lib/utils.js
  36. +48 −2,968 packages/authentication/package-lock.json
  37. +8 −36 packages/authentication/package.json
  38. +327 −0 packages/authentication/test/core.test.js
  39. +0 −245 packages/authentication/test/express/authenticate.test.js
  40. +0 −91 packages/authentication/test/express/emit-events.test.js
  41. +0 −30 packages/authentication/test/express/expose-cookies.test.js
  42. +0 −30 packages/authentication/test/express/expose-headers.test.js
  43. +0 −91 packages/authentication/test/express/failure-redirect.test.js
  44. +0 −41 packages/authentication/test/express/index.test.js
  45. +0 −172 packages/authentication/test/express/set-cookie.test.js
  46. +0 −66 packages/authentication/test/express/success-redirect.test.js
  47. +65 −0 packages/authentication/test/fixtures.js
  48. +0 −115 packages/authentication/test/fixtures/server.js
  49. +0 −37 packages/authentication/test/fixtures/strategy.js
  50. +133 −220 packages/authentication/test/hooks/authenticate.test.js
  51. +92 −0 packages/authentication/test/hooks/connection.test.js
  52. +84 −0 packages/authentication/test/hooks/events.test.js
  53. +0 −17 packages/authentication/test/hooks/index.test.js
  54. +0 −176 packages/authentication/test/index.test.js
  55. +0 −465 packages/authentication/test/integration/primus.test.js
  56. +0 −504 packages/authentication/test/integration/rest.test.js
  57. +0 −589 packages/authentication/test/integration/socketio.test.js
  58. +189 −0 packages/authentication/test/jwt.test.js
  59. +8 −99 packages/authentication/test/options.test.js
  60. +0 −224 packages/authentication/test/passport/authenticate.test.js
  61. +0 −26 packages/authentication/test/passport/index.test.js
  62. +0 −8 packages/authentication/test/passport/initialize.test.js
  63. +213 −100 packages/authentication/test/service.test.js
  64. +0 −20 packages/authentication/test/socket/index.test.js
  65. +0 −263 packages/authentication/test/socket/update-entity.test.js
  66. +0 −218 packages/authentication/test/utils.test.js
  67. +16 −16 packages/client/package-lock.json
  68. +0 −407 packages/errors/package-lock.json
  69. +0 −1,665 packages/rest-client/package-lock.json
  70. +6 −6 packages/socketio-client/package-lock.json
@@ -25,6 +25,7 @@ build/Release
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
.nyc_output

# Users Environment Variables
.lock-wscript

0 comments on commit 1bd7591

Please sign in to comment.
You can’t perform that action at this time.