跳转URL地址可配

This commit is contained in:
yubaolee 2016-07-08 19:43:35 +08:00
parent 6bd3a04a9d
commit dcfc2ee6b4
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,5 @@
using System.Web.Mvc; using System.Configuration;
using System.Web.Mvc;
using OpenAuth.App; using OpenAuth.App;
using OpenAuth.App.SSO; using OpenAuth.App.SSO;
@ -17,7 +18,7 @@ namespace OpenAuth.WebTest.Controllers
public ActionResult Admin() public ActionResult Admin()
{ {
return Redirect("http://localhost:56813?token=" + Request.Cookies["Token"].Value); return Redirect(ConfigurationManager.AppSettings["OpenAuthURL"] + "?token=" + Request.Cookies["Token"].Value);
} }
} }

View File

@ -17,7 +17,7 @@
<!--AppSecret安全私钥(未启用)--> <!--AppSecret安全私钥(未启用)-->
<add key="SSOAppSecret" value="670b14728ad9902aecba32e22fa4f6bd" /> <add key="SSOAppSecret" value="670b14728ad9902aecba32e22fa4f6bd" />
<add key="OpenAuthURL" value="http://localhost:56813"/>
</appSettings> </appSettings>
<system.web> <system.web>
<compilation debug="true" targetFramework="4.5" /> <compilation debug="true" targetFramework="4.5" />