src/main/java/org/hl7/davinci/ehrserver/authproxy/AuthProxy.java
/**
   * Generates the redirect url based on the incoming request
   * @param reqParamValue - the params of the incoming request
   * @param request - the incoming request
   * @return - a formatted string of params to append to the base url
   */
Generates the redirect url based on the incoming request
@param reqParamValue - the params of the incoming request
@param request - the incoming request
@return - a formatted string of params to append to the base url
Generates the redirect url based on the incoming request @param reqParamValue - the params of the incoming request @param request - the incoming request @return - a formatted string of params to append to the base url
private String _parseRedirect(Map<String, String> reqParamValue, HttpServletRequest request) {
    String currentRedirectURI = reqParamValue.get("redirect_uri");
    String finalRedirectURI = "http://" +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);
  }
private String _parseRedirect ( Map < String , String > reqParamValue , HttpServletRequest request ) { String currentRedirectURI = reqParamValue . get ( "redirect_uri" ) ; String finalRedirectURI = "http://" + 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 ) ; }
Generates the redirect url based on the incoming request
 @param reqParamValue - the params of the incoming request
 @param request - the incoming request
 @return - a formatted string of params to append to the base url
Generates the redirect url based on the incoming request @param reqParamValue - the params of the incoming request @param request - the incoming request @return - a formatted string of params to append to the base url