コード例 #1
0
        private void IdentifyViaGCXTNT()
        {
            if ((Session["TntSummary"] == null) || ((myAccounts)Session["TntSummary"]).Countries == null)
            {
                string pgtiou = UserController.GetUserById(_portalID, _userId).Profile.GetPropertyValue("GCXPGTIOU");

                if (!string.IsNullOrEmpty(pgtiou))
                {
                    try
                    {
                        _pgtId = new theKeyProxyTicket.PGTCallBackSoapClient().RetrievePGTCallback("CASAUTH", "thecatsaysmeow3", pgtiou);
                    }
                    catch (Exception e)
                    {
                        _pgtId = string.Empty;
                    }

                    if (!string.IsNullOrEmpty(_pgtId))
                    {
                        _myAccounts = _tnt.GetSummary(_pgtId, _ssoGuid);
                        if (_myAccounts.Status == true)
                        {
                            Session["TntSummary"] = _myAccounts;
                        }
                        else
                        {
                            //PGT TICKET HAS EXPIRED!!! Need to re-authenticate...

                            Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(PortalSettings.LoginTabId) + "?returnurl=" + DotNetNuke.Common.Globals.NavigateURL());
                        }
                    }
                }
            }
            else
            {
                _myAccounts = ((myAccounts)Session["TntSummary"]);
            }
        }
コード例 #2
0
    private void getSummary()
    {
        if ((_ssoGuid == null) || (_pgtId == null))
        {
            setProps();
        }

        if (string.IsNullOrEmpty(_pgtId))
        {
            setPgtId();
        }

        try
        {
            _myAccount = _tnt.GetSummary(_pgtId, _ssoGuid);
            if (_myAccount == null)
            {
            }
        }
        catch (Exception)
        {
            _myAccount = null;
        }
    }
コード例 #3
0
    private void getSummary()
    {
        if ((_ssoGuid == null)||(_pgtId == null))
        {
            setProps();
        }

        if (string.IsNullOrEmpty(_pgtId))
        {
            setPgtId();
        }

        try
        {
            _myAccount = _tnt.GetSummary(_pgtId, _ssoGuid);
            if (_myAccount == null)
            {

            }
        }
        catch (Exception)
        {

            _myAccount = null;
        }
    }
コード例 #4
0
        private void IdentifyViaGCXTNT()
        {
            if ((Session["TntSummary"] == null) || ((myAccounts)Session["TntSummary"]).Countries  == null)
            {
                string pgtiou = UserController.GetUserById(_portalID, _userId).Profile.GetPropertyValue("GCXPGTIOU");

                if (!string.IsNullOrEmpty(pgtiou)  )
                {
                    try
                    {
                        _pgtId = new theKeyProxyTicket.PGTCallBackSoapClient().RetrievePGTCallback("CASAUTH", "thecatsaysmeow3", pgtiou);
                    }
                    catch (Exception e)
                    {
                        _pgtId = string.Empty;
                    }

                    if (!string.IsNullOrEmpty(_pgtId))
                    {
                        _myAccounts = _tnt.GetSummary(_pgtId, _ssoGuid);
                        if (_myAccounts.Status == true)
                            Session["TntSummary"] = _myAccounts;
                        else
                        {
                            //PGT TICKET HAS EXPIRED!!! Need to re-authenticate...

                           Response.Redirect(DotNetNuke.Common.Globals.NavigateURL(PortalSettings.LoginTabId) + "?returnurl=" + DotNetNuke.Common.Globals.NavigateURL());

                        }
                    }
                }
            }
            else
            {

                _myAccounts = ((myAccounts)Session["TntSummary"]);
            }
        }