Skip to content

Commit

Permalink
Update to NET 7
Browse files Browse the repository at this point in the history
  • Loading branch information
DOMZE committed Dec 19, 2022
1 parent 29280e1 commit 9196b6f
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 14 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Fake Authentication Jwt Bearer for ASP.NET Core 6.0
# Fake Authentication Jwt Bearer for ASP.NET Core

This code allow to fake a Jwt Bearer and build integration test for ASP.Net Core application.
By this way we can fake any authentication we need, without the need to really authenticate a user.
Expand All @@ -12,7 +12,9 @@ This code is based on [Microsoft.AspNetCore.Authentication.JwtBearer](https://gi
> 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)
> 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)
> 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)
> 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)
**NOTE**: Version 4.0 was skipped to follow Microsoft versioning pattern for .NET

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -13,8 +13,8 @@
</PackageReference>
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="FluentAssertions" Version="6.8.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="7.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/Sample.WebApplication/Sample.WebApplication.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>6.1.1</Version>
<Version>7.0.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>WebMotions.Fake.Authentication.JwtBearer</AssemblyName>
<PackageId>WebMotions.Fake.Authentication.JwtBearer</PackageId>
Expand All @@ -24,13 +24,13 @@
<RepositoryType>nuget</RepositoryType>
<OutputType>Library</OutputType>
<IsPackable>true</IsPackable>
<AssemblyVersion>6.1.1</AssemblyVersion>
<FileVersion>6.1.1</FileVersion>
<AssemblyVersion>7.0.0</AssemblyVersion>
<FileVersion>7.0.0</FileVersion>
<CodeAnalysisRuleSet>..\..\AnalysisRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="6.25.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<DebugType>portable</DebugType>
<AssemblyName>WebMotions.Fake.Authentication.JwtBearer.Tests</AssemblyName>
<PackageId>WebMotions.Fake.Authentication.JwtBearer.Tests</PackageId>
Expand All @@ -10,13 +10,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="6.0.4" />
<PackageReference Include="Microsoft.AspNetCore.TestHost" Version="7.0.1" />
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="6.25.1" />
<PackageReference Include="FluentAssertions" Version="6.8.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.321">
Expand Down

0 comments on commit 9196b6f

Please sign in to comment.