Remove csurf

New views will be using the REST api not session, so this won't apply
This commit is contained in:
Johannes Zellner
2020-02-05 12:49:35 +01:00
parent 6a92af3db3
commit d3c7616120
9 changed files with 48 additions and 140 deletions
-8
View File
@@ -356,14 +356,6 @@ describe('Clients', function () {
resetToken: hat(256)
};
// make csrf always succeed for testing
oauth2.csrf = function () {
return function (req, res, next) {
req.csrfToken = function () { return hat(256); };
next();
};
};
function setup2(done) {
async.series([
setup,
-16
View File
@@ -204,14 +204,6 @@ describe('OAuth2', function () {
scope: accesscontrol.SCOPE_PROFILE
};
// make csrf always succeed for testing
oauth2.csrf = function () {
return function (req, res, next) {
req.csrfToken = function () { return hat(256); };
next();
};
};
function setup(done) {
async.series([
server.start,
@@ -1298,14 +1290,6 @@ describe('Password', function () {
source: ''
};
// make csrf always succeed for testing
oauth2.csrf = function () {
return function (req, res, next) {
req.csrfToken = function () { return hat(256); };
next();
};
};
function setup(done) {
async.series([
server.start,