File tree Expand file tree Collapse file tree 6 files changed +17
-16
lines changed Expand file tree Collapse file tree 6 files changed +17
-16
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<OutputType >Exe</OutputType >
5
- <TargetFramework >netcoreapp3 .0</TargetFramework >
5
+ <TargetFramework >net7 .0</TargetFramework >
6
6
</PropertyGroup >
7
7
8
8
<ItemGroup >
Original file line number Diff line number Diff line change 1
1
{
2
2
"sdk" : {
3
- "version" : " 3.1 .100"
3
+ "version" : " 7.0 .100"
4
4
}
5
5
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3 .0</TargetFramework >
4
+ <TargetFramework >net7 .0</TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<PropertyGroup >
8
8
<Description >ASP.NET Core authentication handler to validate JWT and reference tokens from IdentityServer4</Description >
9
9
<Authors >Brock Allen;Dominick Baier</Authors >
10
- <PackageId >IdentityServer4.AccessTokenValidation</PackageId >
10
+ <PackageId >Cnblogs. IdentityServer4.AccessTokenValidation</PackageId >
11
11
<PackageTags >OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;IdentityServer;Bearer tokens</PackageTags >
12
12
<PackageIcon >icon.jpg</PackageIcon >
13
13
<PackageProjectUrl >https://github.com/IdentityServer/IdentityServer4.AccessTokenValidation</PackageProjectUrl >
33
33
</ItemGroup >
34
34
35
35
<ItemGroup >
36
- <PackageReference Include =" IdentityModel.AspNetCore.OAuth2Introspection" Version =" 4.0.1" />
36
+ <PackageReference Include =" IdentityModel" Version =" 6.0.0" />
37
+ <PackageReference Include =" IdentityModel.AspNetCore.OAuth2Introspection" Version =" 6.1.0" />
37
38
38
- <PackageReference Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" 3 .0.0" />
39
- <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.0.0-beta2-19367-01 " PrivateAssets =" All" />
39
+ <PackageReference Include =" Microsoft.AspNetCore.Authentication.JwtBearer" Version =" 7 .0.0" />
40
+ <PackageReference Include =" Microsoft.SourceLink.GitHub" Version =" 1.1.1 " PrivateAssets =" All" />
40
41
41
- <PackageReference Include =" minver" Version =" 2 .2.0" PrivateAssets =" All" />
42
+ <PackageReference Include =" minver" Version =" 4 .2.0" PrivateAssets =" All" />
42
43
</ItemGroup >
43
44
</Project >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static TestServer CreateServer(Action<IdentityServerAuthenticationOptions
27
27
{
28
28
app . UseAuthentication ( ) ;
29
29
30
- app . Use ( ( context , next ) =>
30
+ app . Run ( async ( context ) =>
31
31
{
32
32
var user = context . User ;
33
33
@@ -40,7 +40,7 @@ public static TestServer CreateServer(Action<IdentityServerAuthenticationOptions
40
40
context . Response . StatusCode = 401 ;
41
41
}
42
42
43
- return Task . CompletedTask ;
43
+ await Task . CompletedTask ;
44
44
} ) ;
45
45
} ) ) ;
46
46
}
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFramework >netcoreapp3 .0</TargetFramework >
4
+ <TargetFramework >net7 .0</TargetFramework >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
- <PackageReference Include =" FluentAssertions" Version =" 5.9 .0" />
9
- <PackageReference Include =" Microsoft.AspNetCore.TestHost" Version =" 3 .0.0" />
10
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 16.3 .0" />
11
- <PackageReference Include =" xunit" Version =" 2.4.1 " />
12
- <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1 " >
8
+ <PackageReference Include =" FluentAssertions" Version =" 6.8 .0" />
9
+ <PackageReference Include =" Microsoft.AspNetCore.TestHost" Version =" 7 .0.0" />
10
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.4 .0" />
11
+ <PackageReference Include =" xunit" Version =" 2.4.2 " />
12
+ <PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.5 " >
13
13
<PrivateAssets >all</PrivateAssets >
14
14
<IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
15
15
</PackageReference >
File renamed without changes.
You can’t perform that action at this time.
0 commit comments