private void doSSOAuth() { var ssoHelper = new SSOHelper(); var success = false; if (connectionInfo.authType == AuthorizationType.SSOWithCred) success = ssoHelper.doHandshake(connectionInfo.server, connectionInfo.username, connectionInfo.password); else success = ssoHelper.doHandshake(connectionInfo.server); if (!success) throw new Exception("SSO handshake not successful!"); setCookieAuth(connectionInfo.authCookie = ssoHelper.jsessionidCookie); }
private void doSSOAuth() { var ssoHelper = new SSOHelper(); var success = false; if (connectionInfo.authType == AuthorizationType.SSOWithCred) { success = ssoHelper.doHandshake(connectionInfo.server, connectionInfo.username, connectionInfo.password); } else { success = ssoHelper.doHandshake(connectionInfo.server); } if (!success) { throw new Exception("SSO handshake not successful!"); } setCookieAuth(connectionInfo.authCookie = ssoHelper.jsessionidCookie); }
/// <summary> /// Parses an SSO landing page to retreive the Cookie that is embedded for SSO. /// </summary> protected Cookie ParseSSOLandingPage(String ssoLandingPage) { return(SSOHelper.ParseSSOLandingPage(ssoLandingPage)); }