diff --git a/OpenAuth.WebTest/Controllers/HomeController.cs b/OpenAuth.WebTest/Controllers/HomeController.cs
index 78b8180b..59ac1f79 100644
--- a/OpenAuth.WebTest/Controllers/HomeController.cs
+++ b/OpenAuth.WebTest/Controllers/HomeController.cs
@@ -1,4 +1,5 @@
-using System.Web.Mvc;
+using System.Configuration;
+using System.Web.Mvc;
using OpenAuth.App;
using OpenAuth.App.SSO;
@@ -17,7 +18,7 @@ namespace OpenAuth.WebTest.Controllers
public ActionResult Admin()
{
- return Redirect("http://localhost:56813?token=" + Request.Cookies["Token"].Value);
+ return Redirect(ConfigurationManager.AppSettings["OpenAuthURL"] + "?token=" + Request.Cookies["Token"].Value);
}
}
diff --git a/OpenAuth.WebTest/Web.config b/OpenAuth.WebTest/Web.config
index aa7260c2..52d5d263 100644
--- a/OpenAuth.WebTest/Web.config
+++ b/OpenAuth.WebTest/Web.config
@@ -17,7 +17,7 @@
-
+