Ghost/core/test
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
..
functional Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
integration Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
unit Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
utils Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
.eslintrc.json ESlint rule: no-multiple-empty-lines 2017-11-06 10:12:18 +00:00
.jshintrc Remove jshint rules that are no longer supported 2015-01-23 21:00:37 +00:00