@RequestMapping(value="/SAML2/SSOSSL/{tenant:.*}",method={RequestMethod.GET,RequestMethod.POST}) public void ssoSSLDummy(Locale locale,Model model,@PathVariable(value="tenant") String tenant,HttpServletRequest request,HttpServletResponse response) throws IOException {
  logger.info("Welcome to ssoSSLDummy handler! " + tenant);
  try {
    RelyingParty rp=validateRelyingParty(request,tenant);
    if (rp != null) {
      logger.info("Send ssl probing reponse for: " + rp.getUrl());
      URL rpUrl=new URL(rp.getUrl());
      URL redirectUrl=new URL(rpUrl.getProtocol(),rpUrl.getHost(),rpUrl.getPort(),"/vsphere-client/");
      String redirectUrlStr=redirectUrl.toString() + "?" + ssoSSLDummyQueryString(request);
      response.sendRedirect(redirectUrlStr);
    }
 else {
      logger.error("Not able to respond to the request posted to /SAML2/SSOSSL/" + tenant + ": No replying party was found to match the given query parameter!");
      sendError(locale,response,"Not able to respond to the request posted to /SAML2/SSOSSL/");
    }
  }
 catch (  Exception e) {
    logger.error("Caught exception in ssoSSLDummy",e);
    sendError(locale,response,e.getLocalizedMessage());
  }
}

@ RequestMapping ( value = "/SAML2/SSOSSL/{tenant:.*}" , method = { RequestMethod . GET , RequestMethod . POST } ) public void ssoSSLDummy ( Locale locale , Model model , @ PathVariable ( value = "tenant" ) String tenant , HttpServletRequest request , HttpServletResponse response ) throws IOException { logger . info ( "Welcome to ssoSSLDummy handler! " + tenant ) ; try { RelyingParty rp = validateRelyingParty ( request , tenant ) ; if ( rp != null ) { logger . info ( "Send ssl probing reponse for: " + rp . getUrl ( ) ) ; URL rpUrl = new URL ( rp . getUrl ( ) ) ; URL redirectUrl = new URL ( rpUrl . getProtocol ( ) , rpUrl . getHost ( ) , rpUrl . getPort ( ) , "/vsphere-client/" ) ; String redirectUrlStr = redirectUrl . toString ( ) + "?" + ssoSSLDummyQueryString ( request ) ; response . sendRedirect ( redirectUrlStr ) ; } else { logger . error ( "Not able to respond to the request posted to /SAML2/SSOSSL/" + tenant + ": No replying party was found to match the given query parameter!" ) ; sendError ( locale , response , "Not able to respond to the request posted to /SAML2/SSOSSL/" ) ; } } catch ( Exception e ) { logger . error ( "Caught exception in ssoSSLDummy" , e ) ; sendError ( locale , response , e . getLocalizedMessage ( ) ) ; } }
handle ssl for ngc . ngc is to host login page from iframe which would fails silently if the server site is not trusted by browser . this interactive exchange allow user to trust the ssl at the first time browsing this site .
