Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions dockerRunnerDev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
trap "kill $LOAD_DATA_PID $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit" INT

# Set environment variables
export DOCKER_PROFILE="true"

mkdir logs
# Reset log file content for new application boot
echo "*** Logs for 'gradle installBootDist --continuous' ***" > ./logs/builder.log
Expand Down
2 changes: 0 additions & 2 deletions dockerRunnerProd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
trap "kill $LOAD_DATA_PID $SERVER_PID; gradle --stop; exit" INT

# Set environment variables
export DOCKER_PROFILE="true"

mkdir logs
# Reset log file content for new application boot
echo "*** Logs for 'gradle bootRun' ***" > ./logs/runner.log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void authSync(@PathVariable String launch, @RequestParam Map<String, Stri
*/
private String _parseRedirect(Map<String, String> reqParamValue, HttpServletRequest request) {
String currentRedirectURI = reqParamValue.get("redirect_uri");
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;
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;
reqParamValue.put("redirect_uri", finalRedirectURI);
payloadDAO.updateRedirect(reqParamValue.get("launch"), finalRedirectURI);
return paramFormatter(reqParamValue);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fhirServer.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ oauth_authorize = http://localhost:8180/auth/realms/ClientFhirServer/protocol/o
proxy_authorize = http://localhost:8080/test-ehr/auth
proxy_token = http://localhost:8080/test-ehr/token
redirect_post_launch = http://localhost:8080/test-ehr/_services/smart/Launch
redirect_post_token = http://localhost:8080/test-ehr/token
redirect_post_token = http://localhost:8080/test-ehr/token