Ghost/ghost/admin/tests/unit/models
Fabien O'Carroll 3e5a62309f Use Admin API v2 with session auth (#1046)
refs #9865
- removed all `oauth2` and token-based ESA auth
- added new `cookie` authenticator which handles session creation
- updated the session store to extend from the `ephemeral` in-memory store and to restore by fetching the currently logged in user and using the success/failure state to indicate authentication state
  - ESA automatically calls this `.restore()` method on app boot
  - the `session` service caches the current-user query so there's no unnecessary requests being made for the "logged in" state
- removed the now-unnecessary token refresh and logout routines from the `application` route
- removed the now-unnecessary token refresh routines from the `ajax` service
- removed `access_token` query param from iframe file downloaders
- changed Ember Data adapters and `ghost-paths` to use the `/ghost/api/v2/admin/` namespace
2018-10-05 19:46:33 +01:00
..
invite-test.js Use Admin API v2 with session auth (#1046) 2018-10-05 19:46:33 +01:00
navigation-item-test.js Switch to eslint-plugin-ghost extending plugin:ghost/ember 2018-01-12 12:17:56 +00:00
post-test.js Use token input to allow selection of multiple authors in PSM 2018-03-27 18:50:52 +01:00
role-test.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
setting-test.js tests: Convert to new testing API 2016-11-27 15:26:05 +01:00
subscriber-test.js Switch to eslint-plugin-ghost extending plugin:ghost/ember 2018-01-12 12:17:56 +00:00
tag-test.js deps: ember-source@2.12.0 2017-03-29 10:47:46 +01:00
user-test.js Contributor Role (#948) 2018-02-07 10:42:46 +01:00