Skip to content

Commit bcf986c

Browse files
JymapasKoval1997fpandyz
authored
feat!: add support for .NET 7, 8, and 9, add publish workflow - version 1.0.0 (#66)
* chore: clear solution * chore(Assets): #65: move logo from solution to project * chore(Assets): #65: add links to logo in csproj files * chore: add .idea folder to gitignore * chore(Assets): #65: update logo file to 128×128 resolution * Revert "chore: clear solution" This reverts commit ebbf904. * chore(examples): #65: add example for net7 BaseAuthentication * chore: #65: add net7 BaseAuthentication to sln * test(net7): #65: add tests for basic auth * chore(tests): #65: update test app to net7 * chore: #65: add example projects for net7 * chore(tests): #65: add tests for net7 projects * chore: #65: add example projects for net8 * chore(tests): #65: add tests for net8 projects * chore: #65: add example projects for net9 * chore: #65: update tests csproj to net9 * chore: #65: update AspNetCore.Mvc.Testing package to 9 version * chore(tests): #65: add tests for net9 projects * chore(tests): #65: change db names and user credits to fix flacky register with valid tests * chore: #65: update .sln file * chore(Core): #65: update .NET target versions * chore(Identity): #65: update .NET target versions * chore(readme): #65: update .NET versions info * chore(ci): #65: update test workflow to .NET 9 * chore(codestyle): apply dotnet format * chore: bump version of Identity to 0.1.2 and Core to 0.3.5 * chore(csproj): update first and last name order * chore(Assets): #67: move logo from solution to project * chore(Assets): #67: add links to logo in csproj files * chore: add .idea folder to gitignore * chore(Assets): #67: update logo file to 128×128 resolution * Revert "chore: clear solution" This reverts commit ebbf904. * chore(Assets): #67: add JWT text to icon * chore: bump minor versions of packages * Update JwtAuthentication.Core/JwtAuthentication.Core.csproj * chore: update readme * chore: update Authors metainfo * chore(Core): #65: add link to Examples folder in readme * chore(Core): #65: add link to Examples folder in usage-for-old-vesions * chore(Identity): #65: update code examples in readme files * chore(Core): #65: fix path to Examples in readme * fix(Core): #65: update Microsoft.AspNetCore.Authentication.JwtBearer deps to avoid known vulnerability * refactor(Examples): #65: rename NetCore to Net to projects that is higher than .NET 5 * bump version of Identity to 0.1.3 and Core to 0.3.6 * ci(publish-to-nuget): #65: add 7,8 and 9 versions of .NET * chore(Core): clean up JwtBearer dependencies * chore(readme): #65: revert visual changes * chore: allow update to major version 1.0.0 --------- Co-authored-by: Koval1997 <kovalmax06@gmail.com> Co-authored-by: fpandyz <5389368+fpandyz@users.noreply.github.com>
1 parent dd0e06b commit bcf986c

362 files changed

Lines changed: 7861 additions & 1650 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish-to-nuget.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
3.1.x
2424
5.0.x
2525
6.0.x
26+
7.0.x
27+
8.0.x
28+
9.0.x
2629
2730
- name: Restore Dependencies
2831
run: dotnet restore

AspNetCore.JwtAuthentication.sln

Lines changed: 415 additions & 20 deletions
Large diffs are not rendered by default.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using System.Collections.Generic;
2+
using Microsoft.AspNetCore.Authorization;
3+
using Microsoft.AspNetCore.Mvc;
4+
5+
namespace Example.Net5._0.AuthenticationUsingIdentityUser.Controllers
6+
{
7+
[ApiController]
8+
[Route("[controller]")]
9+
public class ExampleController : ControllerBase
10+
{
11+
private static readonly string[] Summaries =
12+
{
13+
"Freezing",
14+
"Bracing",
15+
"Chilly",
16+
"Cool",
17+
"Mild",
18+
"Warm",
19+
"Balmy",
20+
"Hot",
21+
"Sweltering",
22+
"Scorching",
23+
};
24+
25+
[Authorize]
26+
[HttpGet]
27+
public IEnumerable<object> Get()
28+
{
29+
return Summaries;
30+
}
31+
}
32+
}

Examples/Example.NetCore6.0.AuthenticationWithRefreshToken/Data/AppDbContext.cs renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/Data/AppDbContext.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
using Example.NetCore6._0.AuthenticationWithRefreshToken.Models;
1+
using Example.Net5._0.AuthenticationUsingIdentityUser.Models;
22
using Microsoft.EntityFrameworkCore;
33
using TourmalineCore.AspNetCore.JwtAuthentication.Identity;
44

5-
namespace Example.NetCore6._0.AuthenticationWithRefreshToken.Data
5+
namespace Example.Net5._0.AuthenticationUsingIdentityUser.Data
66
{
77
public class AppDbContext : TourmalineDbContext<CustomUser>
88
{

Examples/Example.NetCore5.0.AuthenticationWithRefreshToken/Example.NetCore5.0.AuthenticationWithRefreshToken.csproj renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/Example.Net5.0.AuthenticationUsingIdentityUser.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net5.0</TargetFramework>
5-
<RootNamespace>Example.NetCore5._0.AuthenticationWithRefreshToken</RootNamespace>
5+
<RootNamespace>Example.Net5._0.AuthenticationUsingIdentityUser</RootNamespace>
66
</PropertyGroup>
77

88
<ItemGroup>

Examples/Example.NetCore6.0.AuthenticationWithRefreshToken/Models/CustomUser.cs renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/Models/CustomUser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.AspNetCore.Identity;
22

3-
namespace Example.NetCore6._0.AuthenticationWithRefreshToken.Models
3+
namespace Example.Net5._0.AuthenticationUsingIdentityUser.Models
44
{
55
public class CustomUser : IdentityUser
66
{

Examples/Example.NetCore5.0.AuthenticationWithRefreshToken/Program.cs renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Microsoft.AspNetCore.Hosting;
22
using Microsoft.Extensions.Hosting;
33

4-
namespace Example.NetCore5._0.AuthenticationWithRefreshToken
4+
namespace Example.Net5._0.AuthenticationUsingIdentityUser
55
{
66
public class Program
77
{

Examples/Example.NetCore5.0.AuthenticationUsingIdentityUser/Properties/launchSettings.json renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"ASPNETCORE_ENVIRONMENT": "Development"
1616
}
1717
},
18-
"Example.NetCore5._0.AuthenticationUsingIdentityUser": {
18+
"Example.Net5._0.AuthenticationUsingIdentityUser": {
1919
"commandName": "Project",
2020
"dotnetRunMessages": "true",
2121
"launchBrowser": true,
@@ -25,4 +25,4 @@
2525
}
2626
}
2727
}
28-
}
28+
}

Examples/Example.NetCore5.0.AuthenticationUsingIdentityUser/Startup.cs renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
using Example.NetCore5._0.AuthenticationUsingIdentityUser.Data;
2-
using Example.NetCore5._0.AuthenticationUsingIdentityUser.Models;
1+
using Example.Net5._0.AuthenticationUsingIdentityUser.Data;
2+
using Example.Net5._0.AuthenticationUsingIdentityUser.Models;
33
using Microsoft.AspNetCore.Builder;
44
using Microsoft.AspNetCore.Hosting;
55
using Microsoft.EntityFrameworkCore;
@@ -10,7 +10,7 @@
1010
using TourmalineCore.AspNetCore.JwtAuthentication.Core.Options;
1111
using TourmalineCore.AspNetCore.JwtAuthentication.Identity;
1212

13-
namespace Example.NetCore5._0.AuthenticationUsingIdentityUser
13+
namespace Example.Net5._0.AuthenticationUsingIdentityUser
1414
{
1515
public class Startup
1616
{

Examples/Example.NetCore5.0.AuthenticationUsingIdentityUser/appsettings.json renamed to Examples/Example.Net5.0.AuthenticationUsingIdentityUser/appsettings.json

File renamed without changes.

0 commit comments

Comments
 (0)