Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Make sure Bond is called via HTTPS (#149)
Browse files Browse the repository at this point in the history
* WA-155 Bond is forcing HTTPS and superagent doesn't seem to handle/follow the redirect response right when calling via HTTP.  Request should be HTTPS anyway.

* WA-155 Added logging to help debug http requests to bond and DRS resolver.
  • Loading branch information
gpolumbo-broad authored Apr 10, 2020
1 parent 7087b04 commit eed7703
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions common/api_adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function get(method, url, authorization) {
req.set('authorization', authorization);
}

console.log('Making Request: ' + JSON.stringify(req));
return req;
}

Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


{
"dataObjectResolutionHost": "dataguids.org",
"dataObjectResolutionHost": "staging.gen3.biodatacatalyst.nhlbi.nih.gov",
"bondBaseUrl": "broad-bond-dev.appspot.com",
"samBaseUrl": "https://sam.dsde-dev.broadinstitute.org"
}
2 changes: 1 addition & 1 deletion config.json.ctmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
"dataObjectResolutionHost": {{if eq $runContext "fiab"}}"wb-mock-drs-dev.storage.googleapis.com"{{else if eq $environment "prod"}}"gen3.biodatacatalyst.nhlbi.nih.gov"{{else}}"staging.gen3.biodatacatalyst.nhlbi.nih.gov"{{end}},
"bondBaseUrl": {{if eq $runContext "fiab"}}"bond-fiab.{{$dnsDomain}}"{{else}}"broad-bond-{{$environment}}.appspot.com"{{end}},
"bondBaseUrl": {{if eq $runContext "fiab"}}"bond-fiab.{{$dnsDomain}}"{{else}}"https://broad-bond-{{$environment}}.appspot.com"{{end}},
"samBaseUrl": {{if eq $runContext "fiab"}}"https://sam-fiab.{{$dnsDomain}}"{{else}}"https://sam.dsde-{{$environment}}.broadinstitute.org"{{end}}
}
{{end}}{{end}}{{end}}

0 comments on commit eed7703

Please sign in to comment.