mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
跳转URL地址可配
This commit is contained in:
parent
6bd3a04a9d
commit
dcfc2ee6b4
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
<!--AppSecret安全私钥(未启用)-->
|
||||
<add key="SSOAppSecret" value="670b14728ad9902aecba32e22fa4f6bd" />
|
||||
|
||||
|
||||
<add key="OpenAuthURL" value="http://localhost:56813"/>
|
||||
</appSettings>
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.5" />
|
||||
|
Loading…
Reference in New Issue
Block a user