File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
AbpCompanyName.AbpProjectName.EntityFrameworkCore
AbpCompanyName.AbpProjectName.Web.Core
AbpCompanyName.AbpProjectName.Web.Host
AbpCompanyName.AbpProjectName.Web.Mvc
test/AbpCompanyName.AbpProjectName.Tests Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 15
15
</ItemGroup >
16
16
17
17
<ItemGroup >
18
- <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 2.1.3 " />
19
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 2.1.3 " >
18
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.SqlServer" Version =" 2.1.4 " />
19
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Tools" Version =" 2.1.4 " >
20
20
<PrivateAssets >all</PrivateAssets >
21
21
<IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
22
22
</PackageReference >
23
- <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 2.1.3 " />
23
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.Design" Version =" 2.1.4 " />
24
24
</ItemGroup >
25
25
26
26
<ItemGroup >
Original file line number Diff line number Diff line change 25
25
<ItemGroup >
26
26
<PackageReference Include =" System.ValueTuple" Version =" 4.5.0" />
27
27
<PackageReference Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" 2.1.2" />
28
- <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 2.5 .0" />
28
+ <PackageReference Include =" Swashbuckle.AspNetCore" Version =" 3.0 .0" />
29
29
<PackageReference Include =" Abp.AspNetCore" Version =" 3.8.3" />
30
30
<PackageReference Include =" Abp.ZeroCore" Version =" 3.8.3" />
31
- <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.1.3 " />
31
+ <PackageReference Include =" Microsoft.AspNetCore" Version =" 2.1.4 " />
32
32
<PackageReference Include =" Abp.AspNetCore.SignalR" Version =" 3.8.3" />
33
33
</ItemGroup >
34
34
Original file line number Diff line number Diff line change 33
33
</ItemGroup >
34
34
35
35
<ItemGroup >
36
- <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.1.4 " >
36
+ <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.1.5 " >
37
37
<PrivateAssets >All</PrivateAssets >
38
38
</PackageReference >
39
39
<PackageReference Include =" Castle.LoggingFacility.MsLogging" Version =" 3.1.0" />
40
40
<PackageReference Include =" Microsoft.AspNetCore.Diagnostics" Version =" 2.1.1" />
41
- <PackageReference Include =" Microsoft.AspNetCore.Server.IISIntegration" Version =" 2.1.1 " />
41
+ <PackageReference Include =" Microsoft.AspNetCore.Server.IISIntegration" Version =" 2.1.2 " />
42
42
<PackageReference Include =" Microsoft.AspNetCore.Server.Kestrel" Version =" 2.1.3" />
43
43
<PackageReference Include =" Microsoft.AspNetCore.StaticFiles" Version =" 2.1.1" />
44
44
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.1.1" />
45
45
<PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 2.1.1" />
46
46
<PackageReference Include =" Microsoft.VisualStudio.Web.BrowserLink" Version =" 2.1.1" />
47
- <PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.1.2 " />
47
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.1.3 " />
48
48
<PackageReference Include =" Abp.Castle.Log4Net" Version =" 3.8.3" />
49
49
</ItemGroup >
50
50
Original file line number Diff line number Diff line change 1
1
using System . Collections . Generic ;
2
2
using System . Linq ;
3
+ using System . Reflection ;
3
4
using Swashbuckle . AspNetCore . Swagger ;
4
5
using Swashbuckle . AspNetCore . SwaggerGen ;
5
6
using Abp . Authorization ;
@@ -10,13 +11,13 @@ public class SecurityRequirementsOperationFilter : IOperationFilter
10
11
{
11
12
public void Apply ( Operation operation , OperationFilterContext context )
12
13
{
13
- var actionAttrs = context . ControllerActionDescriptor . MethodInfo . GetCustomAttributes ( true ) . ToList ( ) ;
14
+ var actionAttrs = context . MethodInfo . GetCustomAttributes ( true ) . ToList ( ) ;
14
15
if ( actionAttrs . OfType < AbpAllowAnonymousAttribute > ( ) . Any ( ) )
15
16
{
16
17
return ;
17
18
}
18
19
19
- var controllerAttrs = context . ControllerActionDescriptor . ControllerTypeInfo . GetCustomAttributes ( true ) ;
20
+ var controllerAttrs = context . MethodInfo . DeclaringType . GetTypeInfo ( ) . GetCustomAttributes ( true ) ;
20
21
var actionAbpAuthorizeAttrs = actionAttrs . OfType < AbpAuthorizeAttribute > ( ) . ToList ( ) ;
21
22
22
23
if ( ! actionAbpAuthorizeAttrs . Any ( ) && controllerAttrs . OfType < AbpAllowAnonymousAttribute > ( ) . Any ( ) )
Original file line number Diff line number Diff line change 12
12
using Abp . AspNetCore ;
13
13
using Abp . Castle . Logging . Log4Net ;
14
14
using Abp . Extensions ;
15
- using AbpCompanyName . AbpProjectName . Authentication . JwtBearer ;
16
15
using AbpCompanyName . AbpProjectName . Configuration ;
17
16
using AbpCompanyName . AbpProjectName . Identity ;
18
17
Original file line number Diff line number Diff line change 31
31
32
32
<ItemGroup >
33
33
<PackageReference Include =" Microsoft.AspNetCore.Hosting" Version =" 2.1.1" />
34
- <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.1.4 " >
34
+ <PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.1.5 " >
35
35
<PrivateAssets >All</PrivateAssets >
36
36
</PackageReference >
37
37
<PackageReference Include =" AspNet.Security.OpenIdConnect.Server" Version =" 1.0.2" />
40
40
<PackageReference Include =" Microsoft.AspNetCore.Authentication.Cookies" Version =" 2.1.2" />
41
41
<PackageReference Include =" Microsoft.AspNetCore.Authentication.Twitter" Version =" 2.1.2" />
42
42
<PackageReference Include =" Microsoft.AspNetCore.Diagnostics" Version =" 2.1.1" />
43
- <PackageReference Include =" Microsoft.AspNetCore.Server.IISIntegration" Version =" 2.1.1 " />
43
+ <PackageReference Include =" Microsoft.AspNetCore.Server.IISIntegration" Version =" 2.1.2 " />
44
44
<PackageReference Include =" Microsoft.AspNetCore.Server.Kestrel" Version =" 2.1.3" />
45
45
<PackageReference Include =" Microsoft.AspNetCore.StaticFiles" Version =" 2.1.1" />
46
46
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 2.1.1" />
47
47
<PackageReference Include =" Microsoft.Extensions.Options.ConfigurationExtensions" Version =" 2.1.1" />
48
48
<PackageReference Include =" Microsoft.VisualStudio.Web.BrowserLink" Version =" 2.1.1" />
49
- <PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.1.2 " />
49
+ <PackageReference Include =" Microsoft.AspNetCore.Mvc" Version =" 2.1.3 " />
50
50
<PackageReference Include =" Abp.HangFire" Version =" 3.8.3" />
51
51
<PackageReference Include =" Abp.RedisCache" Version =" 3.8.3" />
52
52
<PackageReference Include =" Abp.Castle.Log4Net" Version =" 3.8.3" />
Original file line number Diff line number Diff line change 25
25
<PackageReference Include =" xunit.extensibility.execution" Version =" 2.4.0" />
26
26
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.0" />
27
27
<PackageReference Include =" Abp.TestBase" Version =" 3.8.3" />
28
- <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.1.3 " />
28
+ <PackageReference Include =" Microsoft.EntityFrameworkCore.InMemory" Version =" 2.1.4 " />
29
29
<PackageReference Include =" Castle.Core" Version =" 4.3.1" />
30
30
</ItemGroup >
31
31
You can’t perform that action at this time.
0 commit comments