Skip to content

Commit 9196b6f

Browse files
committed
Update to NET 7
1 parent 29280e1 commit 9196b6f

File tree

5 files changed

+16
-14
lines changed

5 files changed

+16
-14
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Fake Authentication Jwt Bearer for ASP.NET Core 6.0
1+
# Fake Authentication Jwt Bearer for ASP.NET Core
22

33
This code allow to fake a Jwt Bearer and build integration test for ASP.Net Core application.
44
By this way we can fake any authentication we need, without the need to really authenticate a user.
@@ -12,7 +12,9 @@ This code is based on [Microsoft.AspNetCore.Authentication.JwtBearer](https://gi
1212
1313
> If you need it for ASP.NET Core 3.1, check [Tag 3.1.1](https://github.com/DOMZE/fake-authentication-jwtbearer/tree/3.1.1)
1414
15-
> If you need it for ASP.NET Core 5.0, check [Tag 5.1.0](https://github.com/DOMZE/fake-authentication-jwtbearer/tree/5.1.0)
15+
> If you need it for ASP.NET Core 5.0, check [Tag 5.1.0](https://github.com/DOMZE/fake-authentication-jwtbearer/tree/5.1.0)
16+
17+
> If you need it for ASP.NET Core 6.0, check [Tag 6.1.1](https://github.com/DOMZE/fake-authentication-jwtbearer/tree/6.1.1)
1618
1719
**NOTE**: Version 4.0 was skipped to follow Microsoft versioning pattern for .NET
1820

samples/Sample.WebApplication.Tests/Sample.WebApplication.Tests.csproj

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

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

66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
@@ -13,8 +13,8 @@
1313
</PackageReference>
1414
<PackageReference Include="xunit" Version="2.4.2" />
1515
<PackageReference Include="FluentAssertions" Version="6.8.0" />
16-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.4" />
17-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
16+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="7.0.1" />
17+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
1818
</ItemGroup>
1919

2020
<ItemGroup>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

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

77
</Project>

src/WebMotions.Fake.Authentication.JwtBearer/WebMotions.Fake.Authentication.JwtBearer.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<PropertyGroup>
44
<LangVersion>latest</LangVersion>
5-
<Version>6.1.1</Version>
5+
<Version>7.0.0</Version>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
7-
<TargetFramework>net6.0</TargetFramework>
7+
<TargetFramework>net7.0</TargetFramework>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
99
<AssemblyName>WebMotions.Fake.Authentication.JwtBearer</AssemblyName>
1010
<PackageId>WebMotions.Fake.Authentication.JwtBearer</PackageId>
@@ -24,13 +24,13 @@
2424
<RepositoryType>nuget</RepositoryType>
2525
<OutputType>Library</OutputType>
2626
<IsPackable>true</IsPackable>
27-
<AssemblyVersion>6.1.1</AssemblyVersion>
28-
<FileVersion>6.1.1</FileVersion>
27+
<AssemblyVersion>7.0.0</AssemblyVersion>
28+
<FileVersion>7.0.0</FileVersion>
2929
<CodeAnalysisRuleSet>..\..\AnalysisRules.ruleset</CodeAnalysisRuleSet>
3030
</PropertyGroup>
3131

3232
<ItemGroup>
33-
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
33+
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" />
3434
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
3535
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.1" />
3636
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321">

test/WebMotions.Fake.Authentication.JwtBearer.Tests/WebMotions.Fake.Authentication.JwtBearer.Tests.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
<DebugType>portable</DebugType>
66
<AssemblyName>WebMotions.Fake.Authentication.JwtBearer.Tests</AssemblyName>
77
<PackageId>WebMotions.Fake.Authentication.JwtBearer.Tests</PackageId>
@@ -10,13 +10,13 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
13+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
1414
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
1515
<PrivateAssets>all</PrivateAssets>
1616
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1717
</PackageReference>
1818
<PackageReference Include="xunit" Version="2.4.2" />
19-
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.4" />
19+
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="7.0.1" />
2020
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.25.1" />
2121
<PackageReference Include="FluentAssertions" Version="6.8.0" />
2222
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321">

0 commit comments

Comments
 (0)