Esempio n. 1
0
    protected void CreateSPTokenRequest()
    {
        SPInfoManager spInfo            = new SPInfoManager();
        Object        SPData            = spInfo.GetSPData(this.Context, "SPData");
        string        ScoreSystemSecret = spInfo.GetPropertyBySPID(SPID, "SecretKey", SPData);
        String        TimeStamp         = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");;
        UserToken     UT = new UserToken();

        newSPTokenRequest = UT.GenerateBestAccountMainUserTokenM(CustID, ReturnUrl, TimeStamp, ScoreSystemSecret, out ErrMsg);
        newSPTokenRequest = HttpUtility.UrlEncode(SPID + "$" + newSPTokenRequest);
    }