20. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 11/28/2017 4:44:48 PM Eastern Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

20.1 Files compared

# Location File Last Modified
1 admin_portal_reeng_2018.1.0.0.zip\admin portal reeng\mhv_source\mhv_admin_hooks\mhv-liferay-ssoi-hook\src\main\java\gov\va\med\mhv\ssoi\api\security HttpSessionScreenNameClientRequestFilter.java Fri Sep 8 21:00:14 2017 UTC
2 admin_portal_reeng_2018.1.0.0.zip\admin portal reeng\mhv_source\mhv_admin_hooks\mhv-liferay-ssoi-hook\src\main\java\gov\va\med\mhv\ssoi\api\security HttpSessionScreenNameClientRequestFilter.java Tue Nov 28 21:02:02 2017 UTC

20.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 122
Changed 1 2
Inserted 0 0
Removed 0 0

20.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

20.4 Active regular expressions

No regular expressions were active.

20.5 Comparison detail

  1   package go v.va.med.m hv.ssoi.ap i.security ;
  2  
  3  
  4   /*
  5    * package  gov.va.me d.mhv.sso. api.securi ty;
  6    * 
  7    * import  java.io.IO Exception;
  8    * 
  9    * import  javax.serv let.http.H ttpSession ; import
  10    * javax.w s.rs.clien t.ClientRe questConte xt; import
  11    * javax.w s.rs.clien t.ClientRe questFilte r;
  12    * 
  13    * import  com.lifera y.portal.k ernel.log. Log; impor t
  14    * com.lif eray.porta l.kernel.l og.LogFact oryUtil; i mport
  15    * com.lif eray.porta l.kernel.s ervlet.Por talSession ThreadLoca l;
  16    * 
  17    * import  gov.va.med .mhv.sso.L egacyAutoL ogin;
  18    * 
  19    *//**
  20              * @author  PII
  21            *
  22            * //*
  23            *  public cl ass HttpSe ssionScree nNameClien tRequestFi lter imple ments
  24            *  ClientReq uestFilter  {
  25            *  
  26            *  private s tatic fina l Log LOGG ER =
  27            *  LogFactor yUtil.getL og(HttpSes sionScreen NameClient RequestFil ter.class) ;
  28            *  
  29            *  private s tatic fina l String A PI_APP_KEY  = "appTok en"; priva te static
  30            *  final Str ing API_MH V_USERNAME _KEY = "mh vUsername" ; private  static fin al
  31            *  String SE SSION_USER NAME_KEY =  "LIFERAY_ SHARED_use rid"; priv ate static
  32            *  final Str ing APP_TO KEN = "MyH ealth3Vet1 23";
  33            *  
  34            *  
  35            *  (non-Java doc)
  36            *  
  37            *  @see java x.ws.rs.cl ient.Clien tRequestFi lter#filte r(javax.ws .rs.client .
  38            *  ClientReq uestContex t)
  39            *  
  40            *  @Override  public vo id filter( ClientRequ estContext  requestCo ntext) thr ows
  41            *  IOExcepti on { try {  HttpSessi on session  =
  42            *  PortalSes sionThread Local.getH ttpSession (); String  mhvUserna me = (Stri ng)
  43            *  session.g etAttribut e(LegacyAu toLogin.AT TR_SCREEN_ NAME);
  44            *  
  45            *  if (mhvUs ername ==  null) { th row new
  46            *  IOExcepti on("Unable  to get mh vCorrelati onId or mh vUsername  from sessi on"
  47            *  ); }
  48            *  
  49            *  if (LOGGE R.isDebugE nabled() & & mhvUsern ame != nul l) {
  50            *  LOGGER.de bug("Addin g '" + API _APP_KEY +  "' and '"  + API_MHV _USERNAME_ KEY
  51            *  + "' to A PI Client  Request fo r " + API_ MHV_USERNA ME_KEY + "  " +
  52            *  mhvUserna me); }
  53            *  
  54            *  requestCo ntext.getH eaders().a dd(API_APP _KEY, APP_ TOKEN);
  55            *  requestCo ntext.getH eaders().a dd(API_MHV _USERNAME_ KEY, mhvUs ername); }
  56            *  catch (Ex ception e)  { throw n ew
  57            *  IOExcepti on("Unable  to access  client ht tp session ", e); }
  58            *  
  59            *  }
  60            *  
  61            *  }
  62            * /