0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data
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
..
db Moved knex-migrator execution into Ghost 2018-08-16 12:13:24 +02:00
exporter 🔥 Removed permalink setting 2018-08-16 12:13:24 +02:00
importer Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
meta Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
migrations Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
schema Set up schema and models for API Key authentication (#9904) 2018-10-02 17:46:38 +01:00
validation Updated docs links 2018-08-16 12:13:24 +02:00
xml/sitemap Removed change frequency and priority fields from sitemap generator (#9771) 2018-09-24 19:16:31 +02:00
timezones.json Adds UTC as select option to timezones select list 2016-06-10 15:19:16 +02:00