示例#1
0
        private string CreateSecureQueryString(string returnUrl)
        {
            SecureQueryString qs = new SecureQueryString();

            qs.Add("AuthReturnUrl", this.AuthReturnUrl);
            qs.Add("ReturnUrl", returnUrl);
            return(qs.ToString());
        }
示例#2
0
        public static string CreateSecureQueryString(HttpContext context, string returnUrl)
        {
            SecureQueryString qs = new SecureQueryString();

            qs.Add("AuthReturnUrl", GetAuthReturnUrl(context));
            qs.Add("ReturnUrl", returnUrl);
            return(qs.ToString());
        }
示例#3
0
        public string GetRedirectUrl(string authCookieValue)
        {
            SecureQueryString qs = new SecureQueryString();

            qs.Add("ReturnUrl", this.ReturnUrl);
            qs.Add("SignedOut", this.SignedOut.ToString());
            qs.Add("Auth", authCookieValue);
            return(String.Format("{0}?{1}", HttpUtility.UrlDecode(this.AuthReturnUrl), qs.ToString()));
        }