From 7be6e95277d6461d041ae52938e24963014bea83 Mon Sep 17 00:00:00 2001 From: Kirill Kovalev Date: Tue, 5 Nov 2024 17:38:07 +0300 Subject: [PATCH 1/6] Making RequestObjectFetchAdapters scoped --- Abblix.Oidc.Server/Endpoints/ServiceCollectionExtensions.cs | 6 +++--- Abblix.Oidc.Server/Features/ServiceCollectionExtensions.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Abblix.Oidc.Server/Endpoints/ServiceCollectionExtensions.cs b/Abblix.Oidc.Server/Endpoints/ServiceCollectionExtensions.cs index f07f282..ad5b5ec 100644 --- a/Abblix.Oidc.Server/Endpoints/ServiceCollectionExtensions.cs +++ b/Abblix.Oidc.Server/Endpoints/ServiceCollectionExtensions.cs @@ -95,9 +95,9 @@ public static IServiceCollection AddAuthorizationRequestFetchers(this IServiceCo .AddSingleton() // Add individual authorization request fetchers as singletons - .AddSingleton() - .AddSingleton() - .AddSingleton() + .AddScoped() + .AddScoped() + .AddScoped() // Compose the individual fetchers into a composite fetcher .Compose(); diff --git a/Abblix.Oidc.Server/Features/ServiceCollectionExtensions.cs b/Abblix.Oidc.Server/Features/ServiceCollectionExtensions.cs index f305dfe..e3f91b9 100644 --- a/Abblix.Oidc.Server/Features/ServiceCollectionExtensions.cs +++ b/Abblix.Oidc.Server/Features/ServiceCollectionExtensions.cs @@ -404,7 +404,7 @@ public static IServiceCollection AddUserInfo(this IServiceCollection services) /// modifications and additions to be chained. public static IServiceCollection AddRequestObject(this IServiceCollection services) { - services.TryAddSingleton(); + services.TryAddScoped(); return services; } From add32147e9f64c78280c52ed74ea908619235032 Mon Sep 17 00:00:00 2001 From: Kirill Kovalev Date: Tue, 5 Nov 2024 18:04:34 +0300 Subject: [PATCH 2/6] Update CI/CD actions --- .github/workflows/ci-cd.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 97e538b..47d35e2 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -11,7 +11,7 @@ jobs: outputs: version: ${{ steps.set_version.outputs.new_version }} steps: - - uses: actions/checkout@v4.1.2 + - uses: actions/checkout@v4.2.2 - name: Bump version and push tag id: set_version uses: mathieudutour/github-tag-action@v6.2 @@ -25,11 +25,11 @@ jobs: needs: versioning runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.1.2 + - uses: actions/checkout@v4.2.2 - name: Setup .NET - uses: actions/setup-dotnet@v4.0.0 + uses: actions/setup-dotnet@v4.1.0 with: - dotnet-version: '8.0' + dotnet-version: '9.0' - name: Restore dependencies run: dotnet restore - name: Build @@ -39,7 +39,7 @@ jobs: - name: Pack run: dotnet pack --no-build -c Release -o nupkg /p:PackageVersion=${{ needs.versioning.outputs.version }} - name: Upload NuGet packages as artifacts - uses: actions/upload-artifact@v4.3.1 + uses: actions/upload-artifact@v4.4.3 with: name: nuget-packages path: nupkg/*.nupkg @@ -48,7 +48,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download NuGet packages artifacts - uses: actions/download-artifact@v4.1.4 + uses: actions/download-artifact@v4.1.8 with: name: nuget-packages path: nupkg From 314a20e93a6885a01a6a0dfabdcc692a3d6ab8b6 Mon Sep 17 00:00:00 2001 From: Kirill Kovalev Date: Wed, 13 Nov 2024 11:07:07 +0300 Subject: [PATCH 3/6] Added support for .NET 9 --- .../Abblix.DependencyInjection.csproj | 14 +++++++---- .../Abblix.Jwt.UnitTests.csproj | 2 +- Abblix.Jwt/Abblix.Jwt.csproj | 17 ++++++++++---- .../Abblix.Oidc.Server.Mvc.csproj | 7 +++--- .../Abblix.Oidc.Server.Tests.csproj | 6 ++--- .../Abblix.Oidc.Server.UnitTests.csproj | 2 +- Abblix.Oidc.Server/Abblix.Oidc.Server.csproj | 23 ++++++++++++------- .../Abblix.Utils.UnitTests.csproj | 2 +- Abblix.Utils/Abblix.Utils.csproj | 6 ++--- 9 files changed, 48 insertions(+), 31 deletions(-) diff --git a/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj b/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj index 3a280ef..c04beac 100644 --- a/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj +++ b/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj @@ -1,7 +1,7 @@  - net6.0;net7.0;net8.0 + net6.0;net7.0;net8.0;net9.0 enable enable true @@ -20,12 +20,16 @@ For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases Abblix.png true - 1.2.0.0 - 1.2.0.0 + 1.3.0.0 + 1.3.0.0 - - + + + + + + diff --git a/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj b/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj index c0c2141..6d6505b 100644 --- a/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj +++ b/Abblix.Jwt.UnitTests/Abblix.Jwt.UnitTests.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 enable enable diff --git a/Abblix.Jwt/Abblix.Jwt.csproj b/Abblix.Jwt/Abblix.Jwt.csproj index fdfeee3..8e381f5 100644 --- a/Abblix.Jwt/Abblix.Jwt.csproj +++ b/Abblix.Jwt/Abblix.Jwt.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0;net8.0 + net6.0;net7.0;net8.0;net9.0 enable enable true @@ -20,13 +20,20 @@ For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases Abblix.png true - 1.2.0.0 - 1.2.0.0 + 1.3.0.0 + 1.3.0.0 + + + + + + + + - - + diff --git a/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj b/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj index b5364fc..79456a5 100644 --- a/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj +++ b/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj @@ -1,11 +1,10 @@ - net6.0;net7.0;net8.0 + net6.0;net7.0;net8.0;net9.0 enable enable Linux - net6.0;net7.0;net8.0 true true Abblix.OIDC.Server.MVC @@ -22,8 +21,8 @@ For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases Abblix.png true - 1.2.0.0 - 1.2.0.0 + 1.3.0.0 + 1.3.0.0 diff --git a/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj b/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj index 7adcfb1..34254e7 100644 --- a/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj +++ b/Abblix.Oidc.Server.Tests/Abblix.Oidc.Server.Tests.csproj @@ -1,12 +1,12 @@  - net8.0 + net9.0 - - + + diff --git a/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj b/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj index d65cd6b..bddf9db 100644 --- a/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj +++ b/Abblix.Oidc.Server.UnitTests/Abblix.Oidc.Server.UnitTests.csproj @@ -1,7 +1,7 @@  - net8.0 + net9.0 diff --git a/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj b/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj index a4ef8e6..235bdf8 100644 --- a/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj +++ b/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj @@ -1,12 +1,12 @@  + net6.0;net7.0;net8.0;net9.0 enable true Abblix.OIDC.Server Abblix OIDC Server Flexible OpenID Connect and OAuth 2.0 server-side implementation for modern ASP.NET projects - net6.0;net7.0;net8.0 true Abblix LLP https://www.abblix.com/abblix-oidc-server @@ -19,8 +19,8 @@ For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases Abblix.png true - 1.2.0.0 - 1.2.0.0 + 1.3.0.0 + 1.3.0.0 @@ -31,11 +31,18 @@ - - - - - + + + + + + + + + + + + diff --git a/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj b/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj index c9654cf..c83cddf 100644 --- a/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj +++ b/Abblix.Utils.UnitTests/Abblix.Utils.UnitTests.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable diff --git a/Abblix.Utils/Abblix.Utils.csproj b/Abblix.Utils/Abblix.Utils.csproj index 9c75f97..10d07b9 100644 --- a/Abblix.Utils/Abblix.Utils.csproj +++ b/Abblix.Utils/Abblix.Utils.csproj @@ -1,7 +1,7 @@ - net6.0;net7.0;net8.0 + net6.0;net7.0;net8.0;net9.0 enable enable true @@ -20,8 +20,8 @@ For detailed release notes, visit: https://github.com/Abblix/Oidc.Server/releases Abblix.png true - 1.2.0.0 - 1.2.0.0 + 1.3.0.0 + 1.3.0.0 From 18c2eba6e99e4ffbb3a1446c3e7e79e00d085f65 Mon Sep 17 00:00:00 2001 From: Kirill Kovalev Date: Wed, 13 Nov 2024 11:33:36 +0300 Subject: [PATCH 4/6] Added PackageVersion into CSPROJ files --- Abblix.DependencyInjection/Abblix.DependencyInjection.csproj | 1 + Abblix.Jwt/Abblix.Jwt.csproj | 1 + Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj | 1 + Abblix.Oidc.Server/Abblix.Oidc.Server.csproj | 1 + Abblix.Utils/Abblix.Utils.csproj | 1 + 5 files changed, 5 insertions(+) diff --git a/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj b/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj index c04beac..7d6d78a 100644 --- a/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj +++ b/Abblix.DependencyInjection/Abblix.DependencyInjection.csproj @@ -22,6 +22,7 @@ true 1.3.0.0 1.3.0.0 + 1.3.0.0 diff --git a/Abblix.Jwt/Abblix.Jwt.csproj b/Abblix.Jwt/Abblix.Jwt.csproj index 8e381f5..3a3f942 100644 --- a/Abblix.Jwt/Abblix.Jwt.csproj +++ b/Abblix.Jwt/Abblix.Jwt.csproj @@ -22,6 +22,7 @@ true 1.3.0.0 1.3.0.0 + 1.3.0.0 diff --git a/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj b/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj index 79456a5..c57a3fe 100644 --- a/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj +++ b/Abblix.Oidc.Server.Mvc/Abblix.Oidc.Server.Mvc.csproj @@ -23,6 +23,7 @@ true 1.3.0.0 1.3.0.0 + 1.3.0.0 diff --git a/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj b/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj index 235bdf8..63ef256 100644 --- a/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj +++ b/Abblix.Oidc.Server/Abblix.Oidc.Server.csproj @@ -21,6 +21,7 @@ true 1.3.0.0 1.3.0.0 + 1.3.0.0 diff --git a/Abblix.Utils/Abblix.Utils.csproj b/Abblix.Utils/Abblix.Utils.csproj index 10d07b9..3ca62a1 100644 --- a/Abblix.Utils/Abblix.Utils.csproj +++ b/Abblix.Utils/Abblix.Utils.csproj @@ -22,6 +22,7 @@ true 1.3.0.0 1.3.0.0 + 1.3.0.0 From 34d0689a9b67fc77b7df3166021234c98d725c7c Mon Sep 17 00:00:00 2001 From: Kirill Kovalev Date: Wed, 13 Nov 2024 11:33:53 +0300 Subject: [PATCH 5/6] Fixed a misprint --- .github/workflows/ci-cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 47d35e2..dfbf0a3 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -17,7 +17,7 @@ jobs: uses: mathieudutour/github-tag-action@v6.2 with: github_token: ${{ secrets.GITHUB_TOKEN }} - default_bump: patch # Automatically bump patch version + default_bump: patch # Automatically bump a patch version release_branches: release.*,hotfix.*,master pre_release_branches: feature.* From 65870e31759cb4a4357d60592b76d610b2767ccf Mon Sep 17 00:00:00 2001 From: Alexey Poltorak Date: Wed, 13 Nov 2024 16:55:45 +0500 Subject: [PATCH 6/6] Add .NET 9.0 to badge in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c651862..6661666 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ [![Abblix OIDC Server](https://resources.abblix.com/imgs/jpg/abblix-oidc-server-github-banner.jpg)](https://www.abblix.com/abblix-oidc-server) -[![.NET](https://img.shields.io/badge/.NET-6.0%2C%207.0%2C%208.0-512BD4)](https://docs.abblix.com/docs/technical-requirements) +[![.NET](https://img.shields.io/badge/.NET-6.0%2C%207.0%2C%208.0%2C%209.0-512BD4)](https://docs.abblix.com/docs/technical-requirements) [![language](https://img.shields.io/badge/language-C%23-239120)](https://learn.microsoft.com/ru-ru/dotnet/csharp/tour-of-csharp/overview) [![OS](https://img.shields.io/badge/OS-linux%2C%20windows%2C%20macOS-0078D4)](https://docs.abblix.com/docs/technical-requirements) [![CPU](https://img.shields.io/badge/CPU-x86%2C%20x64%2C%20ARM%2C%20ARM64-FF8C00)](https://docs.abblix.com/docs/technical-requirements)