Skip to content

Commit

Permalink
Update to TLS 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
leefsmp committed Jul 26, 2018
1 parent a859d96 commit 2a6c368
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/api/services/DMSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import ServiceManager from './SvcManager'
import BaseSvc from './BaseSvc'
import Forge from 'forge-apis'
import request from 'request'
import util from 'util'

export default class DMSvc extends BaseSvc {

Expand Down Expand Up @@ -982,6 +981,9 @@ function requestAsync(params) {
headers: params.headers || {
'Authorization': 'Bearer ' + params.token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
json: params.json,
body: params.body

Expand Down
9 changes: 9 additions & 0 deletions src/server/api/services/DerivativesSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ export default class DerivativeSvc extends BaseSvc {
headers: {
'Authorization': 'Bearer ' + token.access_token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
encoding: null
}, function(err, response, body) {

Expand Down Expand Up @@ -295,6 +298,9 @@ export default class DerivativeSvc extends BaseSvc {
headers: {
'Authorization': 'Bearer ' + token.access_token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
encoding: null
}, (err, response, body) => {

Expand Down Expand Up @@ -629,6 +635,9 @@ function requestAsync(params) {
'Authorization':
'Bearer ' + params.token.access_token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
json: params.json,
body: params.body

Expand Down
6 changes: 6 additions & 0 deletions src/server/api/services/ForgeSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,9 @@ export default class ForgeSvc extends BaseSvc {
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
json: true,
form: {
client_secret: this._config.oauth.clientSecret,
Expand Down Expand Up @@ -454,6 +457,9 @@ export default class ForgeSvc extends BaseSvc {
headers: params.headers || {
'Authorization': 'Bearer ' + params.token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
json: params.json,
body: params.body

Expand Down
6 changes: 6 additions & 0 deletions src/server/api/services/OssSvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ export default class OssSvc extends BaseSvc {
headers: {
'Authorization': 'Bearer ' + token.access_token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
encoding: null
}, (err, response, body) => {

Expand Down Expand Up @@ -455,6 +458,9 @@ function requestAsync(params) {
headers: params.headers || {
'Authorization': 'Bearer ' + params.token
},
agentOptions: {
secureProtocol: 'TLSv1_2_method' // 'TLSv1.2'
},
json: params.json,
body: params.body

Expand Down

0 comments on commit 2a6c368

Please sign in to comment.