mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 07:53:22 +02:00
fix all vulnerabilities in the production code (#817)
Signed-off-by: Denis barbaron <denis.barbaron@orange.com>
This commit is contained in:
@@ -7,7 +7,7 @@ var http = require('http')
|
||||
|
||||
var express = require('express')
|
||||
var passport = require('passport')
|
||||
var SamlStrategy = require('passport-saml').Strategy
|
||||
var SamlStrategy = require('@node-saml/passport-saml').Strategy
|
||||
var bodyParser = require('body-parser')
|
||||
var _ = require('lodash')
|
||||
|
||||
@@ -54,7 +54,7 @@ module.exports = function(options) {
|
||||
|
||||
if (options.saml.certPath) {
|
||||
samlConfig = _.merge(samlConfig, {
|
||||
cert: fs.readFileSync(options.saml.certPath).toString()
|
||||
idpCert: fs.readFileSync(options.saml.certPath).toString()
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user