0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00
ghost/core/server/services/auth
Fabien O'Carroll 9be9531ef8
Wired up {GET,POST,DELETE} /session to v2 admin api
* Added admin specific auth{enticate,orize} middleware

refs #9865

This middleware will be used by the admin api to authenticate and
authorize requests

* Update v2/admin to use authAdminApi middleware

refs #9865

This changes thh auth middleware to use the adminApi authenticate and
authorize middlewares underneath, it also renames the middleware to be
consistent with the naming of the api.

* Removed oauth specific endpoints from /v2/admin

refs #9865

These are not to be used in v2/admin

* Wired up the session controller to the admin api

refs #9865

These endpoints will be used by ghost admin to login, confirm logged in status and logout
2018-10-05 17:45:17 +07:00
..
session Session auth service (#9910) 2018-10-02 15:35:23 +07:00
auth-strategies.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
authenticate.js Wired up {GET,POST,DELETE} /session to v2 admin api 2018-10-05 17:45:17 +07:00
authorize.js Wired up {GET,POST,DELETE} /session to v2 admin api 2018-10-05 17:45:17 +07:00
index.js Session auth service (#9910) 2018-10-02 15:35:23 +07: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
utils.js Replace knex.transaction by models.Base.transaction 2018-05-03 11:44:32 +02:00