0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit
Kevin Ansfield 1db3aefb9b
Set up schema and models for API Key authentication (#9904)
refs https://github.com/TryGhost/Ghost/issues/9865
- schema migrations
  - adds `integrations` and `api_keys` tables
  - inserts `integration` and `api_key` permissions and Administrator role relationships
  - inserts `Admin Integration` role and permissions
- adds `Integration` model
- adds `ApiKey` model
  - creates default secret if not given
  - hardcodes associated role based on key type
    - `admin` = `Admin API Client`
    - `content` = no role
- updates `Role` model to use `bookshelf-relations` for auto cleanup of permission relationships on destroy
2018-10-02 17:46:38 +01:00
..
adapters Refactored web/middleware and web/utils to web/shared (#9892) 2018-09-20 20:04:34 +02:00
api Moved api controllers into api/v0.1 (#9918) 2018-09-27 16:06:57 +02:00
apps Updated private-sites to not redirect to full urls 2018-09-25 17:32:17 +07:00
config Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
data Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
helpers 🎨 Added additional parameters to subscribe_form and input_email helpers (#9820) 2018-08-30 17:17:27 +01:00
lib Added new endpoint to upload square profile images with dimension validation (#9862) 2018-09-24 21:42:58 +02:00
models Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
public Updated overrides config for api versions with v0.1 to deprecated (#9921) 2018-09-27 19:34:12 +02:00
services Session auth service (#9910) 2018-10-02 15:35:23 +07:00
web Extended uncapitalise unit tests (#9891) 2018-09-20 22:27:38 +02:00
filters_spec.js Tidy up unit test files (#9340) 2017-12-14 03:36:50 +01:00