From 27f0aae8e01d8d6df14a6f9e5d6687f1116fb564 Mon Sep 17 00:00:00 2001 From: TekH Date: Fri, 6 Feb 2026 13:23:17 +0100 Subject: [PATCH] Remove unused AuthExtensions.cs and its extension method Deleted the AuthExtensions.cs file, which included the AuthorizePolicyAsync extension for IAuthorizationService. This method and related code were no longer needed. --- .../Extensions/AuthExtensions.cs | 25 ------------------- 1 file changed, 25 deletions(-) delete mode 100644 EnvelopeGenerator.API/Extensions/AuthExtensions.cs diff --git a/EnvelopeGenerator.API/Extensions/AuthExtensions.cs b/EnvelopeGenerator.API/Extensions/AuthExtensions.cs deleted file mode 100644 index 9812c4ac..00000000 --- a/EnvelopeGenerator.API/Extensions/AuthExtensions.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Microsoft.AspNetCore.Authorization; -using System.Security.Claims; - -namespace EnvelopeGenerator.API.Extensions; - -/// -/// -/// -public static class AuthExtensions -{ - /// - /// - /// - /// - /// - /// - /// - public static async Task AuthorizePolicyAsync(this IAuthorizationService authService, - ClaimsPrincipal user, - string policyName) - { - var result = await authService.AuthorizeAsync(user, policyName); - return result.Succeeded; - } -}