Ghost/core/test/utils/fixtures
Fabien O'Carroll 3db102a776
Added API Key auth middleware to v2 content API (#10005)
* Added API Key auth middleware to v2 content API

refs #9865

- add `auth.authenticate.authenticateContentApiKey` middleware
  - accepts `?key=` query param, sets `req.api_key` if it's a known Content API key
- add `requiresAuthorizedUserOrApiKey` authorization middleware
  - passes if either `req.user` or `req.api_key` exists
- update `authenticatePublic` middleware stack for v2 content routes

* Fixed functional content api tests

no-issue

This fixes the functional content api tests so they use the content api
auth.

* Fixed context check and removed skip

* Updated cors middleware for content api

* Removed client_id from frame.context

no-issue

The v2 api doesn't have a notion of clients as we do not use oauth for it

* Fixed tests for posts input serializer
2018-10-15 16:23:34 +07:00
..
app Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
config 🎨 config optimisations (#7921) 2017-02-02 12:46:30 +00:00
csv 🎨 Use GhostAuth name and example emails (#7475) 2016-10-03 15:11:43 +01:00
data 🎨Added case insensitive support for redirects (#9755) 2018-09-24 18:57:05 +02:00
export Changes for Koenig and Ghost 2.0 (#9750) 2018-08-16 12:13:24 +02:00
filter-param Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
images Added new endpoint to upload square profile images with dimension validation (#9862) 2018-09-24 21:42:58 +02:00
import 🙀 Image field naming & new img_url helper (#8364) 2017-04-24 18:21:47 +01:00
settings Added tests for reloading routes.yaml 2018-08-16 12:13:24 +02:00
themes Fixed tests 2018-08-30 18:04:54 +01:00
data-generator.js Added API Key auth middleware to v2 content API (#10005) 2018-10-15 16:23:34 +07:00
example.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
test.hbs Move API tests to /integration/ 2013-11-07 14:26:47 +01:00