From 52eac1ec6787a303ff66e6808030f2369eaab654 Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Wed, 11 Nov 2026 12:12:17 +0100 Subject: [PATCH] Update to .NET 11 --- .github/workflows/publish.yml | 2 +- .github/workflows/publish_abstractions.yml | 2 +- .github/workflows/publish_swashbuckle.yml | 2 +- README.md | 2 +- SimpleAuthentication.slnx | 2 +- samples/Controllers/ApiKeySample/ApiKeySample.csproj | 6 +++--- .../BasicAuthenticationSample.csproj | 6 +++--- .../JwtBearerSample/JwtBearerSample.csproj | 6 +++--- samples/MinimalApis/ApiKeySample/ApiKeySample.csproj | 6 +++--- .../BasicAuthenticationSample.csproj | 6 +++--- .../ApplicationAuthenticationSchemeProvider.cs | 0 .../Authentication/ClaimsTransformer.cs | 0 .../JwtBearerSample.Swashbuckle.csproj} | 4 ++-- .../Program.cs | 0 .../Properties/launchSettings.json | 0 .../appsettings.Development.json | 0 .../appsettings.json | 0 .../JwtBearerSample/JwtBearerSample.csproj | 6 +++--- .../SimpleAuthentication.Abstractions.csproj | 12 ++++++++---- 19 files changed, 33 insertions(+), 29 deletions(-) rename samples/MinimalApis/{Net8JwtBearerSample => JwtBearerSample.Swashbuckle}/Authentication/ApplicationAuthenticationSchemeProvider.cs (100%) rename samples/MinimalApis/{Net8JwtBearerSample => JwtBearerSample.Swashbuckle}/Authentication/ClaimsTransformer.cs (100%) rename samples/MinimalApis/{Net8JwtBearerSample/Net8JwtBearerSample.csproj => JwtBearerSample.Swashbuckle/JwtBearerSample.Swashbuckle.csproj} (89%) rename samples/MinimalApis/{Net8JwtBearerSample => JwtBearerSample.Swashbuckle}/Program.cs (100%) rename samples/MinimalApis/{Net8JwtBearerSample => JwtBearerSample.Swashbuckle}/Properties/launchSettings.json (100%) rename samples/MinimalApis/{Net8JwtBearerSample => JwtBearerSample.Swashbuckle}/appsettings.Development.json (100%) rename samples/MinimalApis/{Net8JwtBearerSample => JwtBearerSample.Swashbuckle}/appsettings.json (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 605e9eb..715790d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: env: - NET_VERSION: '10.x' + NET_VERSION: '11.x' PROJECT_NAME: src/SimpleAuthentication PROJECT_FILE: SimpleAuthentication.csproj RELEASE_NAME: SimpleAuthenticationTools diff --git a/.github/workflows/publish_abstractions.yml b/.github/workflows/publish_abstractions.yml index 43c2781..bcd22ae 100644 --- a/.github/workflows/publish_abstractions.yml +++ b/.github/workflows/publish_abstractions.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: env: - NET_VERSION: '10.x' + NET_VERSION: '11.x' PROJECT_NAME: src/SimpleAuthentication.Abstractions PROJECT_FILE: SimpleAuthentication.Abstractions.csproj TAG_NAME: abstractions diff --git a/.github/workflows/publish_swashbuckle.yml b/.github/workflows/publish_swashbuckle.yml index f00d15f..63b44c9 100644 --- a/.github/workflows/publish_swashbuckle.yml +++ b/.github/workflows/publish_swashbuckle.yml @@ -11,7 +11,7 @@ on: workflow_dispatch: env: - NET_VERSION: '10.x' + NET_VERSION: '11.x' PROJECT_NAME: src/SimpleAuthentication.Swashbuckle PROJECT_FILE: SimpleAuthentication.Swashbuckle.csproj TAG_NAME: swashbuckle diff --git a/README.md b/README.md index d2cbe52..e57224c 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Authentication can be fully configured adding an _Authentication_ section in the "SchemeName": "Bearer" // Default: Bearer //"NameClaimType": "user_name", // Default: http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name //"RoleClaimType": "user_role", // Default: http://schemas.microsoft.com/ws/2008/06/identity/claims/role - "SecurityKey": "supersecretsecuritykey42!", // Required + "SecurityKey": "supersupersupersupersupersecretsecuritykey42!", // Required "Algorithm": "HS256", // Default: HS256 "Issuers": [ "issuer" ], // Optional "Audiences": [ "audience" ], // Optional diff --git a/SimpleAuthentication.slnx b/SimpleAuthentication.slnx index 4b09762..3c8b3af 100644 --- a/SimpleAuthentication.slnx +++ b/SimpleAuthentication.slnx @@ -9,7 +9,7 @@ - + diff --git a/samples/Controllers/ApiKeySample/ApiKeySample.csproj b/samples/Controllers/ApiKeySample/ApiKeySample.csproj index 059d697..e373915 100644 --- a/samples/Controllers/ApiKeySample/ApiKeySample.csproj +++ b/samples/Controllers/ApiKeySample/ApiKeySample.csproj @@ -1,14 +1,14 @@  - net10.0 + net11.0 enable enable - - + + diff --git a/samples/Controllers/BasicAuthenticationSample/BasicAuthenticationSample.csproj b/samples/Controllers/BasicAuthenticationSample/BasicAuthenticationSample.csproj index 059d697..e373915 100644 --- a/samples/Controllers/BasicAuthenticationSample/BasicAuthenticationSample.csproj +++ b/samples/Controllers/BasicAuthenticationSample/BasicAuthenticationSample.csproj @@ -1,14 +1,14 @@  - net10.0 + net11.0 enable enable - - + + diff --git a/samples/Controllers/JwtBearerSample/JwtBearerSample.csproj b/samples/Controllers/JwtBearerSample/JwtBearerSample.csproj index 059d697..e373915 100644 --- a/samples/Controllers/JwtBearerSample/JwtBearerSample.csproj +++ b/samples/Controllers/JwtBearerSample/JwtBearerSample.csproj @@ -1,14 +1,14 @@  - net10.0 + net11.0 enable enable - - + + diff --git a/samples/MinimalApis/ApiKeySample/ApiKeySample.csproj b/samples/MinimalApis/ApiKeySample/ApiKeySample.csproj index d11feba..9230392 100644 --- a/samples/MinimalApis/ApiKeySample/ApiKeySample.csproj +++ b/samples/MinimalApis/ApiKeySample/ApiKeySample.csproj @@ -1,14 +1,14 @@  - net10.0 + net11.0 enable enable - - + + diff --git a/samples/MinimalApis/BasicAuthenticationSample/BasicAuthenticationSample.csproj b/samples/MinimalApis/BasicAuthenticationSample/BasicAuthenticationSample.csproj index d11feba..9230392 100644 --- a/samples/MinimalApis/BasicAuthenticationSample/BasicAuthenticationSample.csproj +++ b/samples/MinimalApis/BasicAuthenticationSample/BasicAuthenticationSample.csproj @@ -1,14 +1,14 @@  - net10.0 + net11.0 enable enable - - + + diff --git a/samples/MinimalApis/Net8JwtBearerSample/Authentication/ApplicationAuthenticationSchemeProvider.cs b/samples/MinimalApis/JwtBearerSample.Swashbuckle/Authentication/ApplicationAuthenticationSchemeProvider.cs similarity index 100% rename from samples/MinimalApis/Net8JwtBearerSample/Authentication/ApplicationAuthenticationSchemeProvider.cs rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/Authentication/ApplicationAuthenticationSchemeProvider.cs diff --git a/samples/MinimalApis/Net8JwtBearerSample/Authentication/ClaimsTransformer.cs b/samples/MinimalApis/JwtBearerSample.Swashbuckle/Authentication/ClaimsTransformer.cs similarity index 100% rename from samples/MinimalApis/Net8JwtBearerSample/Authentication/ClaimsTransformer.cs rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/Authentication/ClaimsTransformer.cs diff --git a/samples/MinimalApis/Net8JwtBearerSample/Net8JwtBearerSample.csproj b/samples/MinimalApis/JwtBearerSample.Swashbuckle/JwtBearerSample.Swashbuckle.csproj similarity index 89% rename from samples/MinimalApis/Net8JwtBearerSample/Net8JwtBearerSample.csproj rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/JwtBearerSample.Swashbuckle.csproj index 06fc6d6..52e9ffa 100644 --- a/samples/MinimalApis/Net8JwtBearerSample/Net8JwtBearerSample.csproj +++ b/samples/MinimalApis/JwtBearerSample.Swashbuckle/JwtBearerSample.Swashbuckle.csproj @@ -1,13 +1,13 @@  - net8.0 + net11.0 enable enable - + diff --git a/samples/MinimalApis/Net8JwtBearerSample/Program.cs b/samples/MinimalApis/JwtBearerSample.Swashbuckle/Program.cs similarity index 100% rename from samples/MinimalApis/Net8JwtBearerSample/Program.cs rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/Program.cs diff --git a/samples/MinimalApis/Net8JwtBearerSample/Properties/launchSettings.json b/samples/MinimalApis/JwtBearerSample.Swashbuckle/Properties/launchSettings.json similarity index 100% rename from samples/MinimalApis/Net8JwtBearerSample/Properties/launchSettings.json rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/Properties/launchSettings.json diff --git a/samples/MinimalApis/Net8JwtBearerSample/appsettings.Development.json b/samples/MinimalApis/JwtBearerSample.Swashbuckle/appsettings.Development.json similarity index 100% rename from samples/MinimalApis/Net8JwtBearerSample/appsettings.Development.json rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/appsettings.Development.json diff --git a/samples/MinimalApis/Net8JwtBearerSample/appsettings.json b/samples/MinimalApis/JwtBearerSample.Swashbuckle/appsettings.json similarity index 100% rename from samples/MinimalApis/Net8JwtBearerSample/appsettings.json rename to samples/MinimalApis/JwtBearerSample.Swashbuckle/appsettings.json diff --git a/samples/MinimalApis/JwtBearerSample/JwtBearerSample.csproj b/samples/MinimalApis/JwtBearerSample/JwtBearerSample.csproj index d11feba..9230392 100644 --- a/samples/MinimalApis/JwtBearerSample/JwtBearerSample.csproj +++ b/samples/MinimalApis/JwtBearerSample/JwtBearerSample.csproj @@ -1,14 +1,14 @@  - net10.0 + net11.0 enable enable - - + + diff --git a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj index 8b5d1ac..51650ce 100644 --- a/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj +++ b/src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj @@ -1,7 +1,7 @@  - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 enable enable latest @@ -28,15 +28,19 @@ - + - + - + + + + +