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);
        }
示例#2
0
        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);
        }
示例#3
0
 /// <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));
 }