mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Move TgsAuthorizeAttribute from Controllers namespace to Security
This commit is contained in:
@@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
namespace Tgstation.Server.Host.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// For injecting <see cref="global::System.Security.Claims.Claim"/>s that <see cref="Controllers.TgsAuthorizeAttribute"/> can look for.
|
||||
/// For injecting <see cref="global::System.Security.Claims.Claim"/>s that <see cref="Security.TgsAuthorizeAttribute"/> can look for.
|
||||
/// </summary>
|
||||
interface IClaimsInjector
|
||||
{
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
using Tgstation.Server.Api.Rights;
|
||||
|
||||
namespace Tgstation.Server.Host.Controllers
|
||||
namespace Tgstation.Server.Host.Security
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper for using the <see cref="AuthorizeAttribute"/> with the <see cref="Api.Rights"/> system.
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user