mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-06-23 00:52:07 +08:00
4.0发布前最后一般脚本;
优化登陆; 优化流程审批;
This commit is contained in:
@@ -29,6 +29,16 @@
|
||||
<appender-ref ref="RollingLogFileAppender" />
|
||||
</root>
|
||||
</log4net>
|
||||
|
||||
<appSettings>
|
||||
<add key="version" value="" />
|
||||
|
||||
<!--SSO单点登录主域-->
|
||||
<!--<add key="SSOPassport" value="http://openauthapi.com" />-->
|
||||
<add key="SSOPassport" value="http://localhost:52789" />
|
||||
<!--AppKey唯一标识-->
|
||||
<add key="SSOAppKey" value="openauth" />
|
||||
</appSettings>
|
||||
|
||||
<autofac defaultAssembly=" OpenAuth.Repository">
|
||||
<components>
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace OpenAuth.UnitTest
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
{
|
||||
var service= app.Create("System");
|
||||
var service= app.Create("admin");
|
||||
|
||||
var modules = service.Modules;
|
||||
|
||||
|
||||
@@ -12,11 +12,13 @@ namespace OpenAuth.UnitTest
|
||||
{
|
||||
private FlowSchemeApp _app;
|
||||
private FlowInstanceApp _runApp;
|
||||
private AuthorizeApp authenApp;
|
||||
|
||||
public TestWorkflow()
|
||||
{
|
||||
_app = AutofacExt.GetFromFac<FlowSchemeApp>();
|
||||
_runApp = AutofacExt.GetFromFac<FlowInstanceApp>();
|
||||
authenApp = AutofacExt.GetFromFac<AuthorizeApp>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -26,9 +28,10 @@ namespace OpenAuth.UnitTest
|
||||
[TestMethod]
|
||||
public void Verify()
|
||||
{
|
||||
authenApp.Create("System");
|
||||
_runApp.Verification(new VerificationReq
|
||||
{
|
||||
FlowInstanceId = "132333fe-d8db-4373-b101-b0ac574d3b1a",
|
||||
FlowInstanceId = "7335d82f-5c3d-43e5-a53b-7d51a7cb1f59",
|
||||
VerificationFinally = "3"
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user