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:
Fabien O'Carroll 2019-01-09 11:38:03 +01:00 committed by GitHub
parent dcaed2be3c
commit 63c8c310fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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(),

View File

@ -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');