1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/utils
Fabien O'Carroll 42912cf39b 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
..
bound-one-way.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
caja-sanitizers.js use markdown-it for markdown previews (#690) 2017-05-15 18:51:19 +02:00
ctrl-or-cmd.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
document-title.js Fixed "Route#router intimate API" deprecation notices 2018-04-30 13:07:37 +01:00
format-markdown.js Koenig - Pass html card content through sanitiser 2018-08-09 14:59:03 +01:00
ghost-paths.js Use Admin API v2 with session auth (#1046) 2018-10-05 19:46:33 +01:00
isFinite.js Standardize on var-less export default across ember app 2015-10-06 10:59:50 +01:00
isNumber.js Update code to match eslint rules 2016-11-14 13:26:00 +00:00
link-component.js Remove ember-invoke-action (#978) 2018-03-20 14:57:59 +00:00
random-password.js Bower => NPM (#972) 2018-03-19 17:56:09 +00:00
route.js 🎨 Added confirmation dialogs when leaving screens with unsaved changes (#891) 2017-10-31 15:27:25 +00:00
text-field.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
titleize.js Switched from ember-cli-shims to new module imports (#779) 2017-08-22 14:53:26 +07:00
window-proxy.js use windowProxy to avoid mangling URL during team acceptance tests 2017-11-10 14:27:47 +00:00