Skip to content

Commit 3255ec4

Browse files
authored
Merge pull request #1 from cnblogs/upgrade-to-net7
Upgrade to .NET 7
2 parents d191162 + 5095a17 commit 3255ec4

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

build/build.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "3.1.100"
3+
"version": "7.0.100"
44
}
55
}

src/IdentityServer4.AccessTokenValidation.csproj

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup>
88
<Description>ASP.NET Core authentication handler to validate JWT and reference tokens from IdentityServer4</Description>
99
<Authors>Brock Allen;Dominick Baier</Authors>
10-
<PackageId>IdentityServer4.AccessTokenValidation</PackageId>
10+
<PackageId>Cnblogs.IdentityServer4.AccessTokenValidation</PackageId>
1111
<PackageTags>OAuth2;OAuth 2.0;OpenID Connect;Security;Identity;IdentityServer;Bearer tokens</PackageTags>
1212
<PackageIcon>icon.jpg</PackageIcon>
1313
<PackageProjectUrl>https://github.com/IdentityServer/IdentityServer4.AccessTokenValidation</PackageProjectUrl>
@@ -33,11 +33,12 @@
3333
</ItemGroup>
3434

3535
<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" />
3738

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" />
4041

41-
<PackageReference Include="minver" Version="2.2.0" PrivateAssets="All" />
42+
<PackageReference Include="minver" Version="4.2.0" PrivateAssets="All" />
4243
</ItemGroup>
4344
</Project>

test/PipelineFactory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static TestServer CreateServer(Action<IdentityServerAuthenticationOptions
2727
{
2828
app.UseAuthentication();
2929

30-
app.Use((context, next) =>
30+
app.Run(async (context) =>
3131
{
3232
var user = context.User;
3333

@@ -40,7 +40,7 @@ public static TestServer CreateServer(Action<IdentityServerAuthenticationOptions
4040
context.Response.StatusCode = 401;
4141
}
4242

43-
return Task.CompletedTask;
43+
await Task.CompletedTask;
4444
});
4545
}));
4646
}

test/Tests.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
</PropertyGroup>
66

77
<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">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1515
</PackageReference>
File renamed without changes.

0 commit comments

Comments
 (0)