private string CreateSecureQueryString(string returnUrl) { SecureQueryString qs = new SecureQueryString(); qs.Add("AuthReturnUrl", this.AuthReturnUrl); qs.Add("ReturnUrl", returnUrl); return(qs.ToString()); }
public static string CreateSecureQueryString(HttpContext context, string returnUrl) { SecureQueryString qs = new SecureQueryString(); qs.Add("AuthReturnUrl", GetAuthReturnUrl(context)); qs.Add("ReturnUrl", returnUrl); return(qs.ToString()); }
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())); }