Ghost/core/server/services/auth
Naz Gargol 46706646e3
Refactored authentication controller v0.1 (#10893)
refs #10060

- Modules extractions done here are meant to make upcoming migration of authentication controller to v2 more manageable and reduce code repetition
- There were couple modules extracted for different areas that controller touches: passwordrest, accept (for invitation), setup 
- The aim was to keep changes to the minimum while making small readability improvements to new functions through async/await syntax
- The biggest barrier to make more encapsulated functions was the fact that we mutate options parameter on multiple levels in the controller. e.g mutations of options.data during validation on the password reset ties it up to the implementation of doReset function
2019-07-17 12:28:16 +02:00
..
api-key Updated Admin API key auth to require kid in header (#10538) 2019-02-26 11:03:47 +07:00
members Fixed invalid method usage in members authentication 2019-06-27 15:21:21 +05:30
session Migrated to use url-utils from Ghost-SDK (#10787) 2019-06-18 15:13:55 +02:00
auth-strategies.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
authenticate.js 🐛 Fixed v0.1 username/password authentication 2019-03-06 10:48:21 +01:00
authorize.js Removed obsolete comment about api keys not being supported (#10622) 2019-03-19 20:05:37 +01:00
index.js Refactored authentication controller v0.1 (#10893) 2019-07-17 12:28:16 +02:00
oauth.js Refactored how we require shared middlewares from web/ (#9893) 2018-09-21 16:17:11 +05:30
passport.js Moved labs, auth, permissions, settings, mail, themes to services (#9339) 2017-12-14 03:01:23 +01:00
passwordreset.js Refactored authentication controller v0.1 (#10893) 2019-07-17 12:28:16 +02:00
setup.js Refactored authentication controller v0.1 (#10893) 2019-07-17 12:28:16 +02:00
utils.js Update Test & linting packages (major) (#10858) 2019-07-05 13:40:43 +02:00