From 3403dbcb897989deaab21e8caf4dc543290715db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Thu, 18 Jan 2024 12:36:45 +0100 Subject: [PATCH 1/6] Upgrade to .NET 8 and OC 1.8.2 --- Lombiq.SetupExtensions.csproj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lombiq.SetupExtensions.csproj b/Lombiq.SetupExtensions.csproj index 458b91b..1f14bf7 100644 --- a/Lombiq.SetupExtensions.csproj +++ b/Lombiq.SetupExtensions.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 $(DefaultItemExcludes);.git*;node_modules\** @@ -32,8 +32,8 @@ - - + + From 3438447deffab9f060077bbb9dc097effb6bd1d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Thu, 18 Jan 2024 13:53:16 +0100 Subject: [PATCH 2/6] Removing ISystemClock. --- Apis/Context/AuthenticationContext.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Apis/Context/AuthenticationContext.cs b/Apis/Context/AuthenticationContext.cs index 19e4ec0..b033925 100644 --- a/Apis/Context/AuthenticationContext.cs +++ b/Apis/Context/AuthenticationContext.cs @@ -61,9 +61,8 @@ internal sealed class AlwaysLoggedInApiAuthenticationHandler : AuthenticationHan public AlwaysLoggedInApiAuthenticationHandler( IOptionsMonitor options, ILoggerFactory logger, - UrlEncoder encoder, - ISystemClock clock) - : base(options, logger, encoder, clock) { } + UrlEncoder encoder) + : base(options, logger, encoder) { } protected override Task HandleAuthenticateAsync() => Task.FromResult( From ca84422f26328f04bf6ab309ae5913a6e828fac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Thu, 18 Jan 2024 17:58:09 +0100 Subject: [PATCH 3/6] Addressing IDE0290 and other warnings. --- Apis/Context/AuthenticationContext.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Apis/Context/AuthenticationContext.cs b/Apis/Context/AuthenticationContext.cs index b033925..63dff1f 100644 --- a/Apis/Context/AuthenticationContext.cs +++ b/Apis/Context/AuthenticationContext.cs @@ -56,14 +56,11 @@ protected override Task HandleRequirementAsync(AuthorizationHandlerContext conte } } -internal sealed class AlwaysLoggedInApiAuthenticationHandler : AuthenticationHandler +internal sealed class AlwaysLoggedInApiAuthenticationHandler( + IOptionsMonitor options, + ILoggerFactory logger, + UrlEncoder encoder) : AuthenticationHandler(options, logger, encoder) { - public AlwaysLoggedInApiAuthenticationHandler( - IOptionsMonitor options, - ILoggerFactory logger, - UrlEncoder encoder) - : base(options, logger, encoder) { } - protected override Task HandleAuthenticateAsync() => Task.FromResult( AuthenticateResult.Success( From 10ac10ab6a845c91fe0a80150c2257aa70644ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Tue, 30 Jan 2024 09:42:04 +0100 Subject: [PATCH 4/6] Revert "Addressing IDE0290 and other warnings." This reverts commit ca84422f26328f04bf6ab309ae5913a6e828fac5. --- Apis/Context/AuthenticationContext.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Apis/Context/AuthenticationContext.cs b/Apis/Context/AuthenticationContext.cs index 63dff1f..b033925 100644 --- a/Apis/Context/AuthenticationContext.cs +++ b/Apis/Context/AuthenticationContext.cs @@ -56,11 +56,14 @@ protected override Task HandleRequirementAsync(AuthorizationHandlerContext conte } } -internal sealed class AlwaysLoggedInApiAuthenticationHandler( - IOptionsMonitor options, - ILoggerFactory logger, - UrlEncoder encoder) : AuthenticationHandler(options, logger, encoder) +internal sealed class AlwaysLoggedInApiAuthenticationHandler : AuthenticationHandler { + public AlwaysLoggedInApiAuthenticationHandler( + IOptionsMonitor options, + ILoggerFactory logger, + UrlEncoder encoder) + : base(options, logger, encoder) { } + protected override Task HandleAuthenticateAsync() => Task.FromResult( AuthenticateResult.Success( From b73fd4c40c075ebbec1ffeada5291afab591512b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Fri, 16 Feb 2024 17:33:24 +0100 Subject: [PATCH 5/6] Using issue branch reference. --- .github/workflows/publish-nuget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 4b26cfc..8360fd9 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -7,6 +7,6 @@ on: jobs: publish-nuget: - uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@dev + uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@issue/OSOE-751 secrets: API_KEY: ${{ secrets.DEFAULT_NUGET_PUBLISH_API_KEY }} From 9e437a910d1948018a5adff3d237599dd2b3759c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20M=C3=A1rkus?= Date: Wed, 21 Feb 2024 16:16:16 +0100 Subject: [PATCH 6/6] Reverting to dev reference. --- .github/workflows/publish-nuget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index 8360fd9..4b26cfc 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -7,6 +7,6 @@ on: jobs: publish-nuget: - uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@issue/OSOE-751 + uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@dev secrets: API_KEY: ${{ secrets.DEFAULT_NUGET_PUBLISH_API_KEY }}