Skip to content

Commit 48af57d

Browse files
authored
Merge pull request #44 from mcode/test-ehr-docker-fix
Test ehr docker fix
2 parents b54db77 + 071409c commit 48af57d

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

dockerRunnerDev.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
trap "kill $LOAD_DATA_PID $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit" INT
55

66
# Set environment variables
7-
export DOCKER_PROFILE="true"
8-
97
mkdir logs
108
# Reset log file content for new application boot
119
echo "*** Logs for 'gradle installBootDist --continuous' ***" > ./logs/builder.log

dockerRunnerProd.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
trap "kill $LOAD_DATA_PID $SERVER_PID; gradle --stop; exit" INT
55

66
# Set environment variables
7-
export DOCKER_PROFILE="true"
8-
97
mkdir logs
108
# Reset log file content for new application boot
119
echo "*** Logs for 'gradle bootRun' ***" > ./logs/runner.log

src/main/java/org/hl7/davinci/ehrserver/authproxy/AuthProxy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public void authSync(@PathVariable String launch, @RequestParam Map<String, Stri
143143
*/
144144
private String _parseRedirect(Map<String, String> reqParamValue, HttpServletRequest request) {
145145
String currentRedirectURI = reqParamValue.get("redirect_uri");
146-
String finalRedirectURI = "http://" + ((System.getenv("DOCKER_PROFILE") != null && System.getenv("DOCKER_PROFILE").equals("true")) && Config.get("auth_redirect_host") != null ? Config.get("auth_redirect_host") : request.getLocalName()) + ":" + request.getLocalPort() + "/test-ehr/_auth/" + reqParamValue.get("launch") + "?redirect_uri=" + currentRedirectURI;
146+
String finalRedirectURI = "http://" + ((System.getenv("DOCKER_PROFILE") != null && (System.getenv("DOCKER_PROFILE").equals("docker-linux") || System.getenv("DOCKER_PROFILE").equals("docker-windows"))) && Config.get("auth_redirect_host") != null ? Config.get("auth_redirect_host") : request.getLocalName()) + ":" + request.getLocalPort() + "/test-ehr/_auth/" + reqParamValue.get("launch") + "?redirect_uri=" + currentRedirectURI;
147147
reqParamValue.put("redirect_uri", finalRedirectURI);
148148
payloadDAO.updateRedirect(reqParamValue.get("launch"), finalRedirectURI);
149149
return paramFormatter(reqParamValue);

src/main/resources/fhirServer.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ oauth_authorize = http://localhost:8180/auth/realms/ClientFhirServer/protocol/o
77
proxy_authorize = http://localhost:8080/test-ehr/auth
88
proxy_token = http://localhost:8080/test-ehr/token
99
redirect_post_launch = http://localhost:8080/test-ehr/_services/smart/Launch
10-
redirect_post_token = http://localhost:8080/test-ehr/token
10+
redirect_post_token = http://localhost:8080/test-ehr/token

0 commit comments

Comments
 (0)