Ghost/ghost/extract-api-key
Naz 41103000d2 Added support for Admin API key extraction
refs https://github.com/TryGhost/Toolbox/issues/292

- Allows to detect and extract admin api key ID value. The reason why we are not dealing withe the "secret" value here in a similar way as Content API key is to keep the package independent from the model layer. It only provides "identification" information along with the key type so that the version mismatch data service can deal with this information in an optimal way (just one db query).
2022-05-10 16:08:54 +08:00
..
lib Added support for Admin API key extraction 2022-05-10 16:08:54 +08:00
test Added support for Admin API key extraction 2022-05-10 16:08:54 +08:00
.eslintrc.js Bootstrapped api key extractor package 2022-05-10 12:37:05 +08:00
index.js Bootstrapped api key extractor package 2022-05-10 12:37:05 +08:00
LICENSE Bootstrapped api key extractor package 2022-05-10 12:37:05 +08:00
package.json Added support for Admin API key extraction 2022-05-10 16:08:54 +08:00
README.md Bootstrapped api key extractor package 2022-05-10 12:37:05 +08:00

Extract Api Key

Extracts API key value from requests in formats known to Ghost

Install

npm install @tryghost/extract-api-key --save

or

yarn add @tryghost/extract-api-key

Usage

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Run

  • yarn dev

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.