Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
1e6bb88
Finish 0.1.1
Koval1997 Oct 10, 2022
ebbf904
chore: clear solution
Koval1997 Oct 10, 2022
d3e7adc
chore(Assets): #65: move logo from solution to project
Jun 6, 2025
927b3e6
chore(Assets): #65: add links to logo in csproj files
Jun 6, 2025
e0e3be9
chore: add .idea folder to gitignore
Jun 6, 2025
877432f
chore(Assets): #65: update logo file to 128×128 resolution
Jun 9, 2025
7853b4c
Revert "chore: clear solution"
Jun 17, 2025
b6eba85
chore(examples): #65: add example for net7 BaseAuthentication
Jun 19, 2025
dc9899f
chore: #65: add net7 BaseAuthentication to sln
Jun 19, 2025
b2de4e1
test(net7): #65: add tests for basic auth
Jun 19, 2025
a3e76d2
chore(tests): #65: update test app to net7
Jun 19, 2025
16f429c
chore: #65: add example projects for net7
Jun 22, 2025
ea93fe2
chore(tests): #65: add tests for net7 projects
Jun 22, 2025
b4e4a03
chore: #65: add example projects for net8
Jun 22, 2025
010176e
chore(tests): #65: add tests for net8 projects
Jun 22, 2025
db67258
chore: #65: add example projects for net9
Jun 24, 2025
5f2f435
chore: #65: update tests csproj to net9
Jun 24, 2025
737264c
chore: #65: update AspNetCore.Mvc.Testing package to 9 version
Jun 24, 2025
af3ebe7
chore(tests): #65: add tests for net9 projects
Jun 24, 2025
3d69c0c
chore(tests): #65: change db names and user credits to fix flacky reg…
Jun 25, 2025
baf751c
chore: #65: update .sln file
Jun 25, 2025
cf77811
chore(Core): #65: update .NET target versions
Jun 25, 2025
da65e63
chore(Identity): #65: update .NET target versions
Jun 25, 2025
797ee18
chore(readme): #65: update .NET versions info
Jun 25, 2025
3ebd9a8
chore(ci): #65: update test workflow to .NET 9
Jun 25, 2025
eb64b35
chore(codestyle): apply dotnet format
Jun 25, 2025
034a76f
chore: bump version of Identity to 0.1.2 and Core to 0.3.5
Jun 25, 2025
fbd5802
chore(csproj): update first and last name order
Jun 25, 2025
a99c278
chore(Assets): #67: move logo from solution to project
Jun 6, 2025
e7bcac4
chore(Assets): #67: add links to logo in csproj files
Jun 6, 2025
01c595c
chore: add .idea folder to gitignore
Jun 6, 2025
28fe434
chore(Assets): #67: update logo file to 128×128 resolution
Jun 9, 2025
04e0a20
Revert "chore: clear solution"
Jun 17, 2025
4a88057
chore(Assets): #67: add JWT text to icon
Jymapas Jul 9, 2025
c65bba3
chore: bump minor versions of packages
Jul 10, 2025
025c06b
Update JwtAuthentication.Core/JwtAuthentication.Core.csproj
fpandyz Jul 10, 2025
2e2dbee
chore: update readme
Jul 10, 2025
e34af67
chore: update Authors metainfo
Jul 10, 2025
bef30d8
Merge branch 'TourmalineCore:master' into feature/#67-update-icon-sto…
Jymapas Jul 10, 2025
8b21a35
Merge branch 'TourmalineCore:master' into feature/#67-update-icon-sto…
Jymapas Jul 10, 2025
a9e8be9
Merge branch 'feature/#67-update-icon-storage' into feature/#65-moder…
Jul 10, 2025
ad13d26
chore(Core): #65: add link to Examples folder in readme
Jul 10, 2025
7ebff90
chore(Core): #65: add link to Examples folder in usage-for-old-vesions
Jul 10, 2025
7478bfb
chore(Identity): #65: update code examples in readme files
Jul 10, 2025
2de738d
chore(Core): #65: fix path to Examples in readme
Jul 10, 2025
df34d10
fix(Core): #65: update Microsoft.AspNetCore.Authentication.JwtBearer …
Jul 10, 2025
d751f0c
refactor(Examples): #65: rename NetCore to Net to projects that is hi…
Jul 10, 2025
5ae45b2
bump version of Identity to 0.1.3 and Core to 0.3.6
Jul 11, 2025
57bc34e
ci(publish-to-nuget): #65: add 7,8 and 9 versions of .NET
Jul 11, 2025
bc838d9
Merge branch 'master' into feature/#65-modernize-target-frameworks
Jul 11, 2025
0809905
chore(Core): clean up JwtBearer dependencies
Jul 11, 2025
f1322fb
chore(readme): #65: revert visual changes
Jul 11, 2025
2db52c5
chore: allow update to major version 1.0.0
Jul 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/workflows/publish-to-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
9.0.x

- name: Restore Dependencies
run: dotnet restore
Expand Down
435 changes: 415 additions & 20 deletions AspNetCore.JwtAuthentication.sln

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
using System.Collections.Generic;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Example.Net5._0.AuthenticationUsingIdentityUser.Controllers
{
[ApiController]
[Route("[controller]")]
public class ExampleController : ControllerBase
{
private static readonly string[] Summaries =
{
"Freezing",
"Bracing",
"Chilly",
"Cool",
"Mild",
"Warm",
"Balmy",
"Hot",
"Sweltering",
"Scorching",
};

[Authorize]
[HttpGet]
public IEnumerable<object> Get()
{
return Summaries;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Example.NetCore6._0.AuthenticationWithRefreshToken.Models;
using Example.Net5._0.AuthenticationUsingIdentityUser.Models;
using Microsoft.EntityFrameworkCore;
using TourmalineCore.AspNetCore.JwtAuthentication.Identity;

namespace Example.NetCore6._0.AuthenticationWithRefreshToken.Data
namespace Example.Net5._0.AuthenticationUsingIdentityUser.Data
{
public class AppDbContext : TourmalineDbContext<CustomUser>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Example.NetCore5._0.AuthenticationWithRefreshToken</RootNamespace>
<RootNamespace>Example.Net5._0.AuthenticationUsingIdentityUser</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Identity;

namespace Example.NetCore6._0.AuthenticationWithRefreshToken.Models
namespace Example.Net5._0.AuthenticationUsingIdentityUser.Models
{
public class CustomUser : IdentityUser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Example.NetCore5._0.AuthenticationWithRefreshToken
namespace Example.Net5._0.AuthenticationUsingIdentityUser
{
public class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Example.NetCore5._0.AuthenticationUsingIdentityUser": {
"Example.Net5._0.AuthenticationUsingIdentityUser": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
Expand All @@ -25,4 +25,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Example.NetCore5._0.AuthenticationUsingIdentityUser.Data;
using Example.NetCore5._0.AuthenticationUsingIdentityUser.Models;
using Example.Net5._0.AuthenticationUsingIdentityUser.Data;
using Example.Net5._0.AuthenticationUsingIdentityUser.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
Expand All @@ -10,7 +10,7 @@
using TourmalineCore.AspNetCore.JwtAuthentication.Core.Options;
using TourmalineCore.AspNetCore.JwtAuthentication.Identity;

namespace Example.NetCore5._0.AuthenticationUsingIdentityUser
namespace Example.Net5._0.AuthenticationUsingIdentityUser
{
public class Startup
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Example.NetCore6._0.CookiesBasedAuthentication.Controllers
namespace Example.Net5._0.AuthenticationWithRefreshToken.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Example.NetCore5._0.AuthenticationUsingIdentityUser.Models;
using Example.Net5._0.AuthenticationWithRefreshToken.Models;
using Microsoft.EntityFrameworkCore;
using TourmalineCore.AspNetCore.JwtAuthentication.Identity;

namespace Example.NetCore5._0.AuthenticationUsingIdentityUser.Data
namespace Example.Net5._0.AuthenticationWithRefreshToken.Data
{
public class AppDbContext : TourmalineDbContext<CustomUser>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Example.NetCore5._0.AuthenticationUsingIdentityUser</RootNamespace>
<RootNamespace>Example.Net5._0.AuthenticationWithRefreshToken</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Identity;

namespace Example.NetCore6._0.AuthenticationUsingIdentityUser.Models
namespace Example.Net5._0.AuthenticationWithRefreshToken.Models
{
public class CustomUser : IdentityUser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Example.NetCore5._0.CookiesBasedAuthentication
namespace Example.Net5._0.AuthenticationWithRefreshToken
{
public class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Example.NetCore5._0.AuthenticationWithRefreshToken": {
"Example.Net5._0.AuthenticationWithRefreshToken": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
Expand All @@ -25,4 +25,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;
using Example.NetCore5._0.AuthenticationWithRefreshToken.Data;
using Example.NetCore5._0.AuthenticationWithRefreshToken.Models;
using Example.Net5._0.AuthenticationWithRefreshToken.Data;
using Example.Net5._0.AuthenticationWithRefreshToken.Models;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
Expand All @@ -13,7 +13,7 @@
using TourmalineCore.AspNetCore.JwtAuthentication.Identity.Middleware.Refresh.Models;
using TourmalineCore.AspNetCore.JwtAuthentication.Identity.Options;

namespace Example.NetCore5._0.AuthenticationWithRefreshToken
namespace Example.Net5._0.AuthenticationWithRefreshToken
{
public class Startup
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Example.NetCore5._0.Controllers
namespace Example.Net5._0.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Example.NetCore5._0</RootNamespace>
<RootNamespace>Example.Net5._0</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Example.NetCore5._0
namespace Example.Net5._0
{
public class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Example.NetCore5._0": {
"Example.Net5._0": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TourmalineCore.AspNetCore.JwtAuthentication.Core;
using TourmalineCore.AspNetCore.JwtAuthentication.Core.Options;

namespace Example.NetCore5._0
namespace Example.Net5._0
{
public class Startup
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Example.NetCore5._0.CookiesBasedAuthentication.Controllers
namespace Example.Net5._0.CookiesBasedAuthentication.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Example.NetCore5._0.CookiesBasedAuthentication</RootNamespace>
<RootNamespace>Example.Net5._0.CookiesBasedAuthentication</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Example.NetCore5._0.AuthenticationUsingIdentityUser
namespace Example.Net5._0.CookiesBasedAuthentication
{
public class Program
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Example.NetCore5._0.CookiesBasedAuthentication": {
"Example.Net5._0.CookiesBasedAuthentication": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using TourmalineCore.AspNetCore.JwtAuthentication.Core;
using TourmalineCore.AspNetCore.JwtAuthentication.Core.Options;

namespace Example.NetCore5._0.CookiesBasedAuthentication
namespace Example.Net5._0.CookiesBasedAuthentication
{
public class Startup
{
Expand Down Expand Up @@ -34,9 +34,9 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseRouting();

app.UseCookieLoginMiddleware(new CookieAuthOptions
{
Key = "ExampleCookieName",
}
{
Key = "ExampleCookieName",
}
);
app.UseJwtAuthentication();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Example.NetCore5._0.AuthenticationUsingIdentityUser.Controllers
namespace Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity.Controllers
{
[ApiController]
[Route("[controller]")]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Example.NetCore5._0.RefreshTokenWithConfidenceInterval.Models;
using Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity.Models;
using Microsoft.EntityFrameworkCore;
using TourmalineCore.AspNetCore.JwtAuthentication.Identity;

namespace Example.NetCore5._0.RefreshTokenWithConfidenceInterval.Data
namespace Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity.Data
{
public class AppDbContext : TourmalineDbContext<CustomUser>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Example.NetCore5._0.RefreshTokenAuthAndRegistrationUsingIdentity</RootNamespace>
<RootNamespace>Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity</RootNamespace>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Identity;

namespace Example.NetCore5._0.RefreshTokenWithConfidenceInterval.Models
namespace Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity.Models
{
public class CustomUser : IdentityUser
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}

public static IHostBuilder CreateHostBuilder(string[] args)
{
return Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"Example.NetCore5._0.RefreshTokenAuthAndRegistrationUsingIdentity": {
"Example.Net5._0.RefreshTokenAuthAndRegistrationUsingIdentity": {
"commandName": "Project",
"dotnetRunMessages": "true",
"launchBrowser": true,
Expand All @@ -25,4 +25,4 @@
}
}
}
}
}
Loading
Loading