Ghost/core/test/unit/models
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
..
base Added some missing tests to base model (#9931) 2018-10-02 16:43:19 +02:00
plugins Removed old jshint/jscs rules 2018-06-02 21:48:23 +02:00
api-key_spec.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
invite_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
permission_spec.js Removed knex mock (#9685) 2018-06-12 20:26:16 +02:00
post_spec.js 🎨Added absolute_url flag to public api (#9833) 2018-08-31 11:02:39 +01:00
role_spec.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
session_spec.js Created Session Model (#9909) 2018-09-27 14:31:39 +02:00
tag_spec.js 🎨Added absolute_url flag to public api (#9833) 2018-08-31 11:02:39 +01:00
user_spec.js 🎨Added absolute_url flag to public api (#9833) 2018-08-31 11:02:39 +01:00