File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed
Sample.WebApplication.Tests
src/WebMotions.Fake.Authentication.JwtBearer
test/WebMotions.Fake.Authentication.JwtBearer.Tests Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 1- # Fake Authentication Jwt Bearer for ASP.NET Core 6.0
1+ # Fake Authentication Jwt Bearer for ASP.NET Core
22
33This code allow to fake a Jwt Bearer and build integration test for ASP.Net Core application.
44By 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
Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
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" >
Original file line number Diff line number Diff line change 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 >
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" >
You can’t perform that action at this time.
0 commit comments