From af2570ef790f666c2b384d234987e941a012bcbc Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sun, 22 Oct 2023 20:03:57 -0400 Subject: [PATCH] Move `TgsAuthorizeAttribute` from `Controllers` namespace to `Security` --- src/Tgstation.Server.Host/Security/IClaimsInjector.cs | 2 +- .../{Controllers => Security}/TgsAuthorizeAttribute.cs | 2 +- src/Tgstation.Server.Host/Utils/SwaggerConfiguration.cs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) rename src/Tgstation.Server.Host/{Controllers => Security}/TgsAuthorizeAttribute.cs (98%) diff --git a/src/Tgstation.Server.Host/Security/IClaimsInjector.cs b/src/Tgstation.Server.Host/Security/IClaimsInjector.cs index 52dbebe6af..94899d81ff 100644 --- a/src/Tgstation.Server.Host/Security/IClaimsInjector.cs +++ b/src/Tgstation.Server.Host/Security/IClaimsInjector.cs @@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Authentication.JwtBearer; namespace Tgstation.Server.Host.Security { /// - /// For injecting s that can look for. + /// For injecting s that can look for. /// interface IClaimsInjector { diff --git a/src/Tgstation.Server.Host/Controllers/TgsAuthorizeAttribute.cs b/src/Tgstation.Server.Host/Security/TgsAuthorizeAttribute.cs similarity index 98% rename from src/Tgstation.Server.Host/Controllers/TgsAuthorizeAttribute.cs rename to src/Tgstation.Server.Host/Security/TgsAuthorizeAttribute.cs index a16cf7646d..2f6b62a848 100644 --- a/src/Tgstation.Server.Host/Controllers/TgsAuthorizeAttribute.cs +++ b/src/Tgstation.Server.Host/Security/TgsAuthorizeAttribute.cs @@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Authorization; using Tgstation.Server.Api.Rights; -namespace Tgstation.Server.Host.Controllers +namespace Tgstation.Server.Host.Security { /// /// Helper for using the with the system. diff --git a/src/Tgstation.Server.Host/Utils/SwaggerConfiguration.cs b/src/Tgstation.Server.Host/Utils/SwaggerConfiguration.cs index 3bd803b362..89f7716732 100644 --- a/src/Tgstation.Server.Host/Utils/SwaggerConfiguration.cs +++ b/src/Tgstation.Server.Host/Utils/SwaggerConfiguration.cs @@ -18,6 +18,7 @@ using Tgstation.Server.Api.Models; using Tgstation.Server.Api.Models.Response; using Tgstation.Server.Common.Extensions; using Tgstation.Server.Host.Controllers; +using Tgstation.Server.Host.Security; namespace Tgstation.Server.Host.Utils {