mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Removed brute force middleware form content api (#10353)
* Removed brute force middleware form content api no-issue This is just temporary * Skipped brute test for content api
This commit is contained in:
parent
dcaed2be3c
commit
63c8c310fb
2 changed files with 4 additions and 2 deletions
|
@ -14,7 +14,9 @@ const shared = require('../../../shared');
|
||||||
* Authentication for public endpoints
|
* Authentication for public endpoints
|
||||||
*/
|
*/
|
||||||
module.exports.authenticatePublic = [
|
module.exports.authenticatePublic = [
|
||||||
shared.middlewares.brute.contentApiKey,
|
/* @TODO: put this back
|
||||||
|
* shared.middlewares.brute.contentApiKey,
|
||||||
|
*/
|
||||||
auth.authenticate.authenticateContentApi,
|
auth.authenticate.authenticateContentApi,
|
||||||
auth.authorize.authorizeContentApi,
|
auth.authorize.authorizeContentApi,
|
||||||
cors(),
|
cors(),
|
||||||
|
|
|
@ -6,7 +6,7 @@ describe('Content Api v2 middleware', function () {
|
||||||
should.exist(middleware.authenticatePublic);
|
should.exist(middleware.authenticatePublic);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('authenticatePublic', function () {
|
describe.skip('authenticatePublic', function () {
|
||||||
it('uses brute content api middleware as the first middleware in the chain', function () {
|
it('uses brute content api middleware as the first middleware in the chain', function () {
|
||||||
const firstMiddleware = middleware.authenticatePublic[0];
|
const firstMiddleware = middleware.authenticatePublic[0];
|
||||||
const brute = require('../../../../../../server/web/shared/middlewares/brute');
|
const brute = require('../../../../../../server/web/shared/middlewares/brute');
|
||||||
|
|
Loading…
Add table
Reference in a new issue