public static void RedirectToLogon() { string returnUrl = HttpContext.Current.Request.Url.ToString(); RequestToken token = new RequestToken( returnUrl, DateTime.Now, NextSeed()); string authUrl = ConfigurationManager.AppSettings[Constants.AuthUrl]; string redirectUrl = string.Format("{0}?{1}={2}", authUrl, Constants.RequestToken, token.Encode()); Response.Redirect(redirectUrl); }