mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03: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
@ -14,7 +14,9 @@ const shared = require('../../../shared');
|
||||
* Authentication for public endpoints
|
||||
*/
|
||||
module.exports.authenticatePublic = [
|
||||
shared.middlewares.brute.contentApiKey,
|
||||
/* @TODO: put this back
|
||||
* shared.middlewares.brute.contentApiKey,
|
||||
*/
|
||||
auth.authenticate.authenticateContentApi,
|
||||
auth.authorize.authorizeContentApi,
|
||||
cors(),
|
||||
|
@ -6,7 +6,7 @@ describe('Content Api v2 middleware', function () {
|
||||
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 () {
|
||||
const firstMiddleware = middleware.authenticatePublic[0];
|
||||
const brute = require('../../../../../../server/web/shared/middlewares/brute');
|
||||
|
Loading…
Reference in New Issue
Block a user