Ghost/core/server/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 🐛Fixed count.posts respecting co authors (#9830) 2018-08-30 17:05:29 +01:00
relations Added notes about attribute serialization for tag parent and author author_id (#9932) 2018-10-01 20:30:37 +02:00
accesstoken.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
api-key.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
app-field.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app-setting.js Misc cleanup: moving files & naming functions 2015-06-15 09:43:19 +01:00
app.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
client-trusted-domain.js Add table columns for OAuth 2015-09-02 13:39:22 +01:00
client.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
index.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
integration.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
invite.js Dynamic Routing: Added migration for routes.yaml file (#9692) 2018-06-22 20:28:01 +02:00
permission.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
post.js Removed toJSON serialization in findPage method (#9899) 2018-09-26 14:11:22 +02:00
refreshtoken.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
role.js Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
session.js Created Session Model (#9909) 2018-09-27 14:31:39 +02:00
settings.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00
subscriber.js Updated permittedOptions to correctly call super 2018-09-21 12:15:29 +02:00
tag.js Added notes about attribute serialization for tag parent and author author_id (#9932) 2018-10-01 20:30:37 +02:00
user.js Created Session Model (#9909) 2018-09-27 14:31:39 +02:00
webhook.js 🔥 Drop Node v4 Support 2018-05-01 14:06:18 +02:00