Ghost/core/server/services/auth/api-key/index.js
Fabien O'Carroll 1c56221d80 Added API Key auth middleware to v2 Admin API (#10006)
refs #9865

- Added `auth.authenticate.authenticateAdminApiKey` middleware
  - accepts signed JWT in an `Authorization: Ghost [token]` header
  - sets `req.api_key` if the token is valid
- Updated `authenticatePrivate` middleware stack for v2 admin routes
2019-01-18 12:45:06 +00:00

9 lines
145 B
JavaScript

module.exports = {
get admin() {
return require('./admin');
},
get content() {
return require('./content');
}
};